dispatched = false; //we reset the dispatched state
onAsyncError(error);
if (!dispatched) {
servletRequest.setAttribute(RequestDispatcher.ERROR_EXCEPTION, error);
try {
ServletStackTraces devMode = servletRequestContext.getDeployment().getDeploymentInfo().getServletStackTraces();
boolean errorPage = servletRequestContext.displayStackTraces();
if(errorPage) {
ServletDebugPageHandler.handleRequest(exchange, servletRequestContext, error);
} else {
if (servletResponse instanceof HttpServletResponse) {