Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Not A Bug
-
Affects Version/s: 6.1.26
-
Fix Version/s: None
-
Component/s: HTTP
-
Labels:
-
Number of attachments :
Description
I would like to customize errors thrown by the container.
For example. An error parsing an malformed uri, happens before jetty can assign the request to a context. Therefore, setting custom error pages on a context for these type of errors doesn't work.
Link to related issue
https://jira.codehaus.org/browse/JETTY-1447
This can already be done by creating an instance of ErrorHandler and adding it to the Server with addBean. If response.sendError cannot find a context or the context does not have it's own error handler, then the servers error handler is used.