浏览代码

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

Closes #7632, Closes #7987
Reuben Sutton 11 年之前
父节点
当前提交
645ce26287
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java

+ 1 - 1
src/main/java/org/elasticsearch/indices/IndexPrimaryShardNotAllocatedException.java

@@ -35,6 +35,6 @@ public class IndexPrimaryShardNotAllocatedException extends IndexException {
 
 
     @Override
     @Override
     public RestStatus status() {
     public RestStatus status() {
-        return RestStatus.CONFLICT;
+        return RestStatus.INTERNAL_SERVER_ERROR;
     }
     }
 }
 }