[KongchangAI]
ConceptRetry-After Header

Retry-After

An HTTP response header that a server uses to explicitly tell the client how long it should wait before retrying. The value may be expressed either as a number of seconds or as an HTTP date.

Core Facts

Timeline (last 90 days)

Oct 19

Anthropic documentation explicitly requires clients to honor the retry-after header in 429 responses.

Unverified50%
Oct 19

Anthropic documentation notes that a 429 response triggered by the monthly spending cap has no retry-after header and will keep failing until the quota resets.

Unverified50%
Oct 19

After honoring retry-after and layering full jitter on top, the last call completed at 11.8 seconds, 313 requests were sent, and p95 was 9.1 seconds, with every metric better than the two backoff formulas.

Unverified50%
Oct 18

The Retry-After header has two formats: seconds (e.g. Retry-After: 120) or an HTTP date (e.g. Retry-After: Wed, 21 Oct 2026 07:28:00 GMT).

Unverified50%
Oct 18

An Anthropic API 529 error indicates service overload and is usually accompanied by a Retry-After header; the official guidance is to retry 529 errors following a backoff strategy.

Unverified50%
Oct 15

Services that conform to HTTP semantics often include a Retry-After response header when returning 429, indicating the recommended number of seconds to wait, and clients should prioritize following that value.

Unverified50%
Oct 15

When a 429 is received, exponential backoff with random jitter should be implemented starting at about 500ms, and if a Retry-After response header is present, wait at least that long; ignoring Retry-After or retrying at fixed intervals will prolong the outage for the entire team.

Unverified50%
Oct 14

For HTTP 429, the Retry-After header should be checked, and if present, its value should be used instead of the computed backoff delay.

Unverified50%
Oct 12

Retry-After is an HTTP response header that the server uses to explicitly tell the client how long it should wait before retrying, and the unit can be seconds or an HTTP date; clients should prioritize obeying Retry-After, and only fall back to exponential backoff when that header is missing.

Unverified50%
Oct 12

The retry loop in the code attempts at most 4 times, with exponential backoff starting at 500 milliseconds, and it prioritizes obeying the Retry-After response header when the service provides one.

Unverified50%

7 more timeline events

All Facts (17)

Verified

Retry-After is a standard HTTP response header through which the server informs the client, when returning a 429 or 503, how many seconds to wait before retrying.

75%
Verified

The Retry-After header in an HTTP 429 response is used by the server to inform the client of the number of seconds to wait, and reading this value takes priority over calculating it independently.

65%
Verified

The core idea of exponential backoff is that the wait time between retries grows exponentially, with random jitter added to avoid the thundering herd effect.

65%
Unverified

Anthropic documentation notes that a 429 response triggered by the monthly spending cap has no retry-after header and will keep failing until the quota resets.

50%
Unverified

Anthropic documentation explicitly requires clients to honor the retry-after header in 429 responses.

50%
Unverified

After honoring retry-after and layering full jitter on top, the last call completed at 11.8 seconds, 313 requests were sent, and p95 was 9.1 seconds, with every metric better than the two backoff formulas.

50%
Unverified

An Anthropic API 529 error indicates service overload and is usually accompanied by a Retry-After header; the official guidance is to retry 529 errors following a backoff strategy.

50%
Unverified

The Retry-After header has two formats: seconds (e.g. Retry-After: 120) or an HTTP date (e.g. Retry-After: Wed, 21 Oct 2026 07:28:00 GMT).

50%
Unverified

Services that conform to HTTP semantics often include a Retry-After response header when returning 429, indicating the recommended number of seconds to wait, and clients should prioritize following that value.

50%
Unverified

When a 429 is received, exponential backoff with random jitter should be implemented starting at about 500ms, and if a Retry-After response header is present, wait at least that long; ignoring Retry-After or retrying at fixed intervals will prolong the outage for the entire team.

50%
Unverified

For HTTP 429, the Retry-After header should be checked, and if present, its value should be used instead of the computed backoff delay.

50%
Unverified

Retry-After is an HTTP response header that the server uses to explicitly tell the client how long it should wait before retrying, and the unit can be seconds or an HTTP date; clients should prioritize obeying Retry-After, and only fall back to exponential backoff when that header is missing.

50%
Unverified

The retry loop in the code attempts at most 4 times, with exponential backoff starting at 500 milliseconds, and it prioritizes obeying the Retry-After response header when the service provides one.

50%
Unverified

Some APIs explicitly inform the client how many seconds to wait via the Retry-After response header in a 429 response, which is more precise than blind backoff.

50%
Unverified

For invalid Retry-After values, the SDK now ignores them directly and validates maxRetries.

50%
Unverified

v1.6.0 fixed the retry logic so the client respects Retry-After values exceeding 60 seconds, which previously would trigger premature retries due to an upper limit.

50%
Unverified

Some APIs include a Retry-After response header when returning 429 (Too Many Requests) to tell the client how long to wait, and that value should be used as the authoritative wait time.

50%

Source Articles