Change http status of AuthorizationException to 403

Closes elastic/elasticsearch#55

Original commit: elastic/x-pack-elasticsearch@23006f238b
This commit is contained in:
uboness 2014-09-01 06:37:15 +02:00
parent fd568037bb
commit ef48bf7c6e
1 changed files with 1 additions and 1 deletions

View File

@ -22,6 +22,6 @@ public class AuthorizationException extends org.elasticsearch.shield.SecurityExc
@Override
public RestStatus status() {
return RestStatus.UNAUTHORIZED;
return RestStatus.FORBIDDEN;
}
}