Invoked when a client error occurs, that is, an error in the 4xx series.
Invoked when a client error occurs, that is, an error in the 4xx series.
The request that caused the client error.
The error status code. Must be greater or equal to 400, and less than 500.
The error message.
Invoked when a server error occurs.
Invoked when a server error occurs.
The request that triggered the server error.
The server error.
An HttpErrorHandler that delegates to one of several HttpErrorHandlers based on media type preferences.
For example, to create an error handler that handles JSON and HTML, with JSON preferred by the app as default:
If the client's preferred media range matches multiple media types in the list, then the first match is chosen.