protected CasJsonServiceResponseAuthenticationFailure createAuthenticationFailure(final Map<String, Object> model) {
        val failure = new CasJsonServiceResponseAuthenticationFailure();
        failure.setCode(getErrorCodeFrom(model));
        failure.setDescription(getErrorDescriptionFrom(model));
        return failure;
    }
Attribute name in the final model representing the service response.
support/cas-server-support-validation-core/src/main/java/org/apereo/cas/web/view/json/Cas30JsonResponseView.java