From 645ce26287582d21541df2428fa0a17294e1f1cf Mon Sep 17 00:00:00 2001 From: Reuben Sutton Date: Sat, 4 Oct 2014 18:44:25 +0100 Subject: [PATCH] Change IndexPrimaryShardNotAllocatedException from 409 (RestStatus.CONFLICT) to 500 (RestStatus.INTERNAL_SERVER_ERROR) Closes #7632, Closes #7987 --- .../indices/IndexPrimaryShardNotAllocatedException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java b/src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java index e4434a36e5a..1c1caed81f6 100644 --- a/src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java +++ b/src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java @@ -35,6 +35,6 @@ public class IndexPrimaryShardNotAllocatedException extends IndexException { @Override public RestStatus status() { - return RestStatus.CONFLICT; + return RestStatus.INTERNAL_SERVER_ERROR; } }