Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Oct 31, 2024
1 parent 57cfc32 commit 23be30b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

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

@Override
public RestStatus status() {
return RestStatus.GATEWAY_TIMEOUT;
return RestStatus.TOO_MANY_REQUESTS;
}
}

0 comments on commit 23be30b

Please sign in to comment.