Fix it
- Check status.claude.com for a capacity notice. On Amazon Bedrock, Google Cloud or Microsoft Foundry the error message names that provider's status page instead, and behind a custom
ANTHROPIC_BASE_URLit names the gateway host. - Wait a few minutes and send it again. In Claude Code your message is still in the conversation, so typing
try againis enough. - In Claude Code, switch models. Run
/modeland pick another one. Capacity is tracked per model, which is why you may seeOpus is experiencing high load, please use /model to switch to Sonnet. - In your own code, let the SDK retry. Anthropic's SDKs retry 429s and 5xx responses (529 included) twice by default, waiting as long as a
retry-afterheader says, or backing off from 0.5 to 8 seconds. Raise the count for batch jobs:import anthropic client = anthropic.Anthropic(max_retries=5) # TypeScript option: maxRetries - For unattended Claude Code runs such as CI, set
CLAUDE_CODE_RETRY_WATCHDOG=1so it keeps retrying 429 and 529 capacity errors past its normal retry count.
What the error looks like
From the API (the error body always has type, message and a request_id):
HTTP 529
{"type": "error", "error": {"type": "overloaded_error", "message": "..."}, "request_id": "req_..."}
From Claude Code, after it has already retried:
API Error: Repeated 529 Overloaded errors. The API is at capacity — this is usually temporary. Try again in a moment. If it persists, check https://status.claude.com.
In the Python SDK it is raised as anthropic.OverloadedError; catching anthropic.InternalServerError (the class for every 5xx) also catches it.
Causes
- High traffic across all users of the API. This is Anthropic's own description of a 529.
- One model under particularly high load while others still have room.
- On a cloud provider or gateway, capacity at that provider.
Not a cause: your plan. Claude Code's docs say a 529 is not your usage limit and doesn't count against your quota.
529, 429, 500 or 504: which one do you have?
| Status | Error type | Meaning | What to do |
|---|---|---|---|
| 529 | overloaded_error | API temporarily overloaded | Wait, retry with backoff, switch model |
| 429 | rate_limit_error | Your organization hit a rate limit or its spend cap; a sharp rise in usage can also trigger it | Back off. A spend-cap 429 has no retry-after header and keeps failing until access resumes, so cap your retries |
| 500 | api_error | Unexpected error inside Anthropic | Retry only if the x-should-retry header isn't false |
| 504 | timeout_error | Request timed out while processing | Use streaming for long requests |
The SDKs sort errors by HTTP status, not by error type: a 503 that carries overloaded_error is handled as a general 5xx, not as a 529.
Errors in the middle of a stream
With streaming, an error can arrive after the API has already answered 200. It then comes as an error event in the stream, not as a 529 status, and the SDK does not retry an error in a stream. Catch it inside your stream loop and decide whether to resend.
Tune Claude Code's retries
Claude Code retries transient failures up to 10 times with exponential backoff before showing an error; the spinner reads Retrying in Ns · attempt x/y meanwhile.
| Variable | Default | Effect |
|---|---|---|
CLAUDE_CODE_MAX_RETRIES | 10 | Retry attempts, capped at 15 |
CLAUDE_CODE_RETRY_WATCHDOG | unset | 1 keeps retrying 429 and 529 past the limit (for CI) |
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS | 500 | First backoff delay after a 529, up to 32000 (v2.1.292+) |
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS | 32000 | Ceiling on that backoff, up to 300000 (v2.1.296+; above 64000 needs v2.1.323+) |
When to contact support
Every API response carries a request-id header, and error bodies repeat it as request_id. Include it when you contact Anthropic about a specific failure. In Claude Code, the docs suggest /feedback when a server error persists with no incident posted.
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
Does a 529 count against my Claude usage limit?
No. Claude Code's error reference says a 529 is not your usage limit and doesn't count against your quota.
Is error 529 the same as 429?
No. 529 (overloaded_error) means the API is at capacity for everyone. 429 (rate_limit_error) means your own organization hit a rate limit or its spend cap.
Why does Claude Code wait so long before showing the 529?
It retries transient failures, including overloaded responses, up to 10 times with exponential backoff before showing the error. CLAUDE_CODE_MAX_RETRIES changes the count.
Is the 529 caused by my prompt?
No. Anthropic describes it as the API being temporarily overloaded, which can happen during high traffic across all users.
Related errors
- Claude Code: Failed to authenticate / 403
- Gemini CLI error 429 Resource exhausted
- Claude Code not working in VS Code
Sources
Read 29 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.
- Claude API docs: Errors: platform.claude.com/docs/en/api/errors
- Claude Code docs: Error reference: code.claude.com/docs/en/errors
- Claude status page: status.claude.com
- LLM API cost checker: find LLM calls with no limits or retries capped
- Guide: API rate limiting and 429 Too Many Requests: rate limits on your own API
- CLAUDE.md security check: find risky instructions in agent rules files