code: protected final Response newResponse(ExceptionType exception, Response.Status status) {
          final StringWriter writer = new StringWriter(4096);
          try {
              final long id = randomId();
              logException(id, exception);
              errorHandler.writeErrorPage(request,
                                          writer,
                                          status.getStatusCode(),
                                          formatResponseEntity(id, exception),
                                          false);
          } catch (IOException e) {
              LOGGER.warn("Unable to generate error page", e);
          }
  
          return Response
                  .status(status)
                  .type(MediaType.TEXT_HTML_TYPE)
                  .entity(writer.toString())
                  .build();
      }
docs: Generate an HTTP error response.
  <p/>
  This response includes:
  <ul>
  <li>A unique id for this exception event.</li>
  <li>The response code (specified by subclasses).</li>
  <li>The exception stack trace.</li>
  </ul>
  
  @param exception exception instance thrown while processing {@link KayVeeLoggingExceptionMapper#request}
  @param status HTTP status code of the response (ex. 400, 404, etc.)
  @return a valid {@code Response} instance with a fully-populated error message and HTTP response code set that can be sent to the client