-
Feature Request
-
Resolution: Done
-
Major
-
2.1.3.Final
-
None
Using the predicate language in Undertow, there is no way to return the error pages configured in the servlet from the handler chain that runs first in the XNIO worker thread. For example, if the response-code() handler is used, the exchange is simply ended and no response body is sent which is not a very useful behavior.
A solution provided by Stuart on the mailing list was to set the response code but not end the exchange. Then configure the servlet handler to check for a status code above 399 and call the servlet sendError() routine.
- relates to
-
UNDERTOW-2139 Auth mechanism failures (401,403) don't use servlet error pages
- Resolved