public static void produceErrorView(final HttpServletRequest request, final HttpStatus status, final String message) {
        request.setAttribute("status", status.value());
        request.setAttribute("error", status.name());
        request.setAttribute("message", message);
    }
Produce error view.

@param request    the request
@param status the bad request
@param message    the message
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java