public interface HttpErrorHandler
Modifier and Type | Interface and Description |
---|---|
static class |
HttpErrorHandler.Attrs
Request attributes used by the error handler.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletionStage<Result> |
onClientError(Http.RequestHeader request,
int statusCode,
java.lang.String message)
Invoked when a client error occurs, that is, an error in the 4xx series.
|
java.util.concurrent.CompletionStage<Result> |
onServerError(Http.RequestHeader request,
java.lang.Throwable exception)
Invoked when a server error occurs.
|
java.util.concurrent.CompletionStage<Result> onClientError(Http.RequestHeader request, int statusCode, java.lang.String message)
request
- The request that caused the client error.statusCode
- The error status code. Must be greater or equal to 400, and less than 500.message
- The error message.java.util.concurrent.CompletionStage<Result> onServerError(Http.RequestHeader request, java.lang.Throwable exception)
request
- The request that triggered the server error.exception
- The server error.