1
0
Эх сурвалжийг харах

Change IndexPrimaryShardNotAllocatedException from 409 (RestStatus.CONFLICT) to 500 (RestStatus.INTERNAL_SERVER_ERROR)

Closes #7632, Closes #7987
Reuben Sutton 11 жил өмнө
parent
commit
645ce26287

+ 1 - 1
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;
     }
 }