Skip to content

Commit

Permalink
Document 429 handling generically
Browse files Browse the repository at this point in the history
We only had a few mentions of 429 handling, now documenting our expectation
generically.
  • Loading branch information
henningandersen committed Feb 21, 2024
1 parent edf96a5 commit e2cf63c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/reference/api-conventions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ Content-Type: application/vnd.elasticsearch+json; compatible-with=7
Accept: application/vnd.elasticsearch+json; compatible-with=7
----------------------------------------------------------------------

[discrete]
[[api-push-back]]
=== `TOO_MANY_REQUESTS (429)` status code push back

Elasticsearch may respond with a `TOO_MANY_REQUESTS (429)` status code, indicating that it is too busy right now to
handle the request. When this happens, you should consider to retry the operation after a short delay, preferably
with randomized exponential back-off.

[discrete]
[[api-url-access-control]]
=== URL-based access control
Expand Down

0 comments on commit e2cf63c

Please sign in to comment.