public static ModelAndView produceUnauthorizedErrorView(final Exception ex) {
        val error = UnauthorizedServiceException.wrap(ex);
        return produceErrorView(error);
    }
Produce unauthorized error view model and view.

@param ex the ex
@return the model and view
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java