You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
header might be included to this response, indicating how long to wait before
297
-
making a new request.
294
+
Error to indicate the client has sent too many requests in a given amount of time.
295
+
296
+
This error response SHOULD include [`Retry-After`](#retry-after-response-header) HTTP header to indicate how long the client should wait before making a follow-up request.
298
297
299
298
### `451` Unavailable For Legal Reasons
300
299
@@ -308,9 +307,21 @@ See: [Denylists](#denylists)
308
307
309
308
A generic server error returned when it is not possible to return a better one.
310
309
310
+
### `502` Bad Gateway
311
+
312
+
Returned immediately when Gateway was not able to produce response for a known reason.
313
+
For example, when gateway failed to find any providers for requested data.
314
+
315
+
This error response SHOULD include [`Retry-After`](#retry-after-response-header) HTTP header to indicate how long the client should wait before retrying.
316
+
311
317
### `504` Gateway Timeout
312
318
313
-
Returned when Gateway was not able to produce response under set limits.
319
+
Returned when Gateway was not able to produce response under set time limits.
320
+
For example, when gateway failed to retrieve data from a remote provider.
321
+
322
+
There is no generic timeout, Gateway implementations SHOULD set timeouts based on specific use cases.
323
+
324
+
This error response SHOULD include [`Retry-After`](#retry-after-response-header) HTTP header to indicate how long the client should wait before retrying.
314
325
315
326
## Response Headers
316
327
@@ -551,6 +562,14 @@ Optional, present in certain response types:
551
562
non-executable binary response types are not used in `<script>` and `<style>`
552
563
HTML tags.
553
564
565
+
### `Retry-After` (response header)
566
+
567
+
Gateway returns this header with error responses such as [`429 Too Many Requests`](#429-too-many-requests) or [`504 Gateway Timeout`](#504-gateway-timeout).
568
+
569
+
The "Retry-After" header indicates how long the user agent ought to wait before making a follow-up request.
570
+
571
+
See Section 10.2.3 of :cite[rfc9110].
572
+
554
573
### `Server-Timing` (response header)
555
574
556
575
Optional. Implementations MAY use this header to communicate one or more
0 commit comments