Response#sendError(int) and
Response#sendError(int, java.lang.String) methods.
The ErrorPageGenerator might be set per 1) HttpServer: HttpServer#getServerConfiguration();
2) NetworkListener:
NetworkListener#setDefaultErrorPageGenerator(org.glassfish.grizzly.http.server.ErrorPageGenerator) ; 3)
Response: Response#setErrorPageGenerator(org.glassfish.grizzly.http.server.ErrorPageGenerator) ;
| Modifier and Type | Method and Description |
|---|---|
| public String | generate(final Request request, final int
response status status, final String response reason phrase reasonPhrase, final String extra description. Might be null description, final Throwable Throwable, that caused the error. Might be nullReturns the HTML representation of the error page corresponding to the given HTTP response status. |