protected ModelAndView getBadRequestResponseEntity(final HttpStatus status) {
        val mv = new ModelAndView(new MappingJackson2JsonView());
        mv.setStatus(status);
        return mv;
    }
Handle request..

@param request  the request
@param response the response
@return the model and view
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcInitialAccessTokenController.java