Skip to content

Commit b41217b

Browse files
Clarify client behavior for 502 and 504 response codes (#623)
Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.com>
1 parent 24b4e5c commit b41217b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/specification.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ below about what this field can contain in each specific failure case.
559559
The server SHOULD use HTTP response status codes to indicate
560560
retryable and not-retryable errors for a particular erroneous situation. The
561561
client SHOULD honour HTTP response status codes as retryable or not-retryable.
562+
563+
##### Retryable Response Codes
564+
562565
The requests that receive a response status code listed in following table SHOULD
563566
be retried.
564567
All other `4xx` or `5xx` response status codes MUST NOT be retried.
@@ -591,9 +594,10 @@ overloaded, the server SHOULD respond with `HTTP 429 Too Many Requests` or
591594
recommended time interval in seconds to wait before retrying.
592595

593596
The client SHOULD honour the waiting interval specified in the "Retry-After"
594-
header if it is present. If the client receives an `HTTP 429` or an `HTTP 503`
595-
response and the "Retry-After" header is not present in the response, then the
596-
client SHOULD implement an exponential backoff strategy between retries.
597+
header if it is present. If the client receives a retryable error code (see
598+
[table above](#retryable-response-codes)) and the "Retry-After" header is
599+
not present in the response, then the client SHOULD implement an exponential backoff
600+
strategy between retries.
597601

598602
##### All Other Responses
599603

0 commit comments

Comments
 (0)