HttpServletResponse response,
Context context,
Wrapper wrapper)
throws IOException, ServletException {
CoyoteResponseFacade responseFacade = getResponseFacade(response);
int statusCode = responseFacade.getStatus();
Object exception = request.getAttribute(Globals.EXCEPTION_ATTR);
String errorReportValveClass =
((StandardHost)(context.getParent())).getErrorReportValveClass();
if (errorReportValveClass != null && statusCode >= 400