/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License;
 * you may not use this file except in compliance with the Elastic License.
 */
package org.elasticsearch.shield.authz;

import org.elasticsearch.rest.RestStatus;

/**
 *
 */
public class AuthorizationException extends org.elasticsearch.shield.SecurityException {

    public AuthorizationException(String msg) {
        super(msg);
    }

    public AuthorizationException(String msg, Throwable cause) {
        super(msg, cause);
    }

    @Override
    public RestStatus status() {
        return RestStatus.UNAUTHORIZED;
    }
}

@@ -671,20 +671,17 @@
 tus.
-UNAUTHORIZED
+FORBIDDEN
 ;%0A  

Change http status of AuthorizationException to 403