if (statusCode == HttpServletResponse.SC_NO_CONTENT)
return;
// Handle a custom error page for this status code
Context context = (Context) container.getParent();
ErrorPage errorPage = context.findErrorPage(statusCode);
if (errorPage != null) {
ServletRequest sreq = request.getRequest();
sreq.setAttribute(Globals.STATUS_CODE_ATTR,
new Integer(statusCode));
sreq.setAttribute(Globals.ERROR_MESSAGE_ATTR,