Improve error responses from DefaultErrorHandler and add additional
attributes to OnException annotation.