@RequestMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_REDIRECT, method = RequestMethod.HEAD)
    @Operation(summary = "Handle SAML2 SSO HEAD Profile Request")
    public ModelAndView handleSaml2ProfileSsoRedirectHeadRequest(final HttpServletResponse response,
                                                                 final HttpServletRequest request) {
        LOGGER.info("Endpoint [{}] called with HTTP HEAD returning Bad Request", SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_REDIRECT);
        return WebUtils.produceErrorView(new IllegalArgumentException("Unable to handle request type"));
    }
Handle SSO HEAD profile redirect request (not allowed).

@param response the response
@param request  the request
@return the model and view
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPPostProfileHandlerController.java