                out,
                new String(dataBytes, StandardCharsets.UTF_8),
                new String(htmlTemplateBytes, StandardCharsets.UTF_8),
                cssBytes != null ? new String(cssBytes, StandardCharsets.UTF_8) : null);

        response.setContentType(MediaType.TEXT_HTML_VALUE + ";charset=UTF-8");
        if (error == null) {
            response.setStatus(HttpStatus.OK.value());