public static ModelAndView produceUnauthorizedErrorView(final HttpStatus status) {
        val ex = UnauthorizedServiceException.denied("Rejected: %s".formatted(status));
        return produceErrorView(ex, status);
    }
Produce unauthorized error view.

@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