code: public void handle(
          String pathInContext,
          String pathParams,
          HttpRequest request,
          HttpResponse response)
          throws HttpException, IOException
      {
          response.setContentType(HttpFields.__TextHtml);
          ByteArrayISO8859Writer writer= new ByteArrayISO8859Writer(2048);
          writeErrorPage(request, writer, response.getStatus(), response.getReason());
          writer.flush();
          response.setContentLength(writer.size());
          writer.writeTo(response.getOutputStream());
          writer.destroy();
      }
docs: /* ------------------------------------------------------------