public static Map<String, Object> getErrorResponseBody(final String error, final String description) {
        val model = CollectionUtils.<String, Object>wrap(OAuth20Constants.ERROR, error);
        if (StringUtils.isNotBlank(description)) {
            model.put(OAuth20Constants.ERROR_DESCRIPTION, description);
        }
        return model;
    }
Gets error response body.

@param error       the error
@param description the description
@return the error response body
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java