public static ModelAndView produceErrorView(final Exception e, final HttpStatus status) {
        val mv = new ModelAndView(CasWebflowConstants.VIEW_ID_SERVICE_ERROR,
            CollectionUtils.wrap(CasWebflowConstants.ATTRIBUTE_ERROR_ROOT_CAUSE_EXCEPTION, e));
        mv.setStatus(status);
        return mv;
    }
Produce error view.

@param e      the exception
@param status the status
@return the model and view
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java