Skip to content

Commit

Permalink
Return correct HTTP code for a server timeout on _cluster/health
Browse files Browse the repository at this point in the history
  • Loading branch information
arteam committed Sep 23, 2021
1 parent 77dc033 commit 817c5d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public String toString() {

@Override
public RestStatus status() {
return isTimedOut() ? RestStatus.REQUEST_TIMEOUT : RestStatus.OK;
return RestStatus.OK;
}

@Override
Expand Down

0 comments on commit 817c5d6

Please sign in to comment.