We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57cfc32 commit 23be30bCopy full SHA for 23be30b
server/src/main/java/org/elasticsearch/search/query/SearchTimeoutException.java
@@ -18,7 +18,7 @@
18
19
/**
20
* Specific instance of {@link SearchException} that indicates that a search timeout occurred.
21
- * Always returns http status 504 (Gateway Timeout)
+ * Always returns http status 429.
22
*/
23
public class SearchTimeoutException extends SearchException {
24
public SearchTimeoutException(SearchShardTarget shardTarget, String msg) {
@@ -31,6 +31,6 @@ public SearchTimeoutException(StreamInput in) throws IOException {
31
32
@Override
33
public RestStatus status() {
34
- return RestStatus.GATEWAY_TIMEOUT;
+ return RestStatus.TOO_MANY_REQUESTS;
35
}
36
0 commit comments