From ef48bf7c6e2f53341bd25b9487110f223c9a2c6b Mon Sep 17 00:00:00 2001 From: uboness Date: Mon, 1 Sep 2014 06:37:15 +0200 Subject: [PATCH] Change http status of AuthorizationException to 403 Closes elastic/elasticsearch#55 Original commit: elastic/x-pack-elasticsearch@23006f238b044b0ed14f12d77e03c4f1985edb16 --- .../org/elasticsearch/shield/authz/AuthorizationException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/shield/authz/AuthorizationException.java b/src/main/java/org/elasticsearch/shield/authz/AuthorizationException.java index a808d3ffbaa..655eaa4142d 100644 --- a/src/main/java/org/elasticsearch/shield/authz/AuthorizationException.java +++ b/src/main/java/org/elasticsearch/shield/authz/AuthorizationException.java @@ -22,6 +22,6 @@ public class AuthorizationException extends org.elasticsearch.shield.SecurityExc @Override public RestStatus status() { - return RestStatus.UNAUTHORIZED; + return RestStatus.FORBIDDEN; } }