Skip to content

Commit 23be30b

Browse files
committed
iter
1 parent 57cfc32 commit 23be30b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/search/query/SearchTimeoutException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/**
2020
* Specific instance of {@link SearchException} that indicates that a search timeout occurred.
21-
* Always returns http status 504 (Gateway Timeout)
21+
* Always returns http status 429.
2222
*/
2323
public class SearchTimeoutException extends SearchException {
2424
public SearchTimeoutException(SearchShardTarget shardTarget, String msg) {
@@ -31,6 +31,6 @@ public SearchTimeoutException(StreamInput in) throws IOException {
3131

3232
@Override
3333
public RestStatus status() {
34-
return RestStatus.GATEWAY_TIMEOUT;
34+
return RestStatus.TOO_MANY_REQUESTS;
3535
}
3636
}

0 commit comments

Comments
 (0)