HTTP 529 overloaded_error is Anthropic's documented temporary-overload response. It calls for controlled retry or deferral, not a key rotation or an assumption that your request is malformed. Keep it separate from a 429 rate or spend-limit failure.
Confirm where the failure arrived
For an ordinary failed HTTP request, inspect the status and the structured error type. Anthropic's direct API error format includes a top-level error object with type and message, plus a request_id. The error types can expand over time, so retain a safe path for unknown values.
With server-sent events, HTTP 200 only establishes that the stream opened. An error can arrive afterward. Mark the operation complete only after its terminal success condition; preserve partial output and the error event separately. An application that checks only the initial status can incorrectly store an interrupted answer as a successful result.
Retry without amplifying overload
- Limit attempts and elapsed time. An attempt counter without a request timeout can still wait too long.
- Honor documented server retry guidance when supplied. Do not shorten its minimum delay to fit a local backoff cap; stop or defer if it exceeds the remaining budget.
- Add jitter and reduce admission pressure. A large queue that retries simultaneously creates another burst.
- Use one retry owner. The official SDK already retries eligible transient failures twice by default; configure that behavior before wrapping it in another loop.
- Do not replay a partially processed tool workflow as if it were a harmless text read. Check for completed side effects before rerunning application actions.
The retry-planning example demonstrates locally tested delay arithmetic, including a server wait that exceeds an operation's budget. Its code does not perform provider requests or recover an SSE stream. Adapting a scheduler does not establish that a particular SDK operation is safely repeatable.
Deferral and fallback solve different problems
For work that can wait, pause or bound the queue and consider the supported Message Batches workflow. Batching is asynchronous processing with its own constraints; it is not an immediate failover channel or a guarantee of capacity during an incident.
For an interactive service, a fallback should already have a tested request adapter, supported capabilities, acceptable output quality, an explicit cost budget, and an owner. Switching models can change tool behavior, output structure, context limits, and data handling. Price the proposed workload with the calculator, then validate those integration differences separately. A lower rate card is not evidence of better availability.
Keep an incident record that support can use
Save the request ID, model ID, timestamp, endpoint, attempt number, and whether output was partial. On the direct Claude API, the response header is named request-id; its name is different from the req_ value prefix. On Claude Platform on AWS, the documentation distinguishes the AWS request ID from the Anthropic request ID. Use the appropriate identifier for the support path.
Check the provider status page for published incidents, while retaining your own error timeline. A status page can lag or describe a narrower service; its absence of an incident does not prove your request succeeded. This guide did not execute provider inference or measure outage frequency.