published fresh until

API Error 400/429/529 in Claude Code: which fix should I try?

Summary As of October 2026, Claude Code request errors need different fixes: validation errors require a request or client change, rate limits require identifying the cap, overload calls for paced retry, and context errors need smaller input. Sources checked 2026-10-20.

Not for unattended retry policy, see claude-code-unattended-run-fails-on-429-529-retry-watchdog; failed compaction, see claude-code-error-during-compaction-conversation-too-long-context-limit-reached

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Retrying helps overload but cannot repair an invalid request. Record text, provider, model and claude --version. Redact secrets from logs.

Versions and status

ItemVerified finding
ReleaseAs of November 2026, Claude Code 2.1.330, released 2026-11-20 (both checked 2026-11-23), official release
Provider-switch fixClaude Code 2.1.302, released 2026-10-16 (both checked 2026-10-20), official release
ScopeInteractive CLI recovery; no pricing or licence comparison

What changed

400 after switching provider

  • Exact message: diagnostics: Extra inputs are not permitted.
  • Cause: the documented client bug after switching to Vertex or Bedrock mid-session; a different rejected field requires separate diagnosis.
  • Fix: run claude --version, then claude update for native/npm installations. Restart and test a read-only prompt. Homebrew uses brew upgrade claude-code or brew upgrade claude-code@latest, matching the installed cask. Stable can lag latest; see the setup guide.
  • Do not: retry the unchanged invalid payload indefinitely or strip unrelated fields from every gateway request.
  • Source: official provider-switch fix, checked 2026-10-20.

429 or temporary server throttling

  • Exact CLI message: API Error: Server is temporarily limiting requests (not your usage limit) · Rate limited.
  • Cause: the reported message distinguishes server throttling from subscription quota. Separately, HTTP 429 with API type rate_limit_error can mean throughput, a tier spend cap or a Claude Code workspace spend limit (other spend limits you set return 400). Identify the cap first.
  • Fix: run /usage; for an interactive subscription wait, inspect /rate-limit-options. For temporary throttling, reduce simultaneous session starts and retry one small prompt after the server's delay. API clients should honor retry-after when present. Spend caps need the applicable reset or an admin budget decision.
  • Do not: fan out more sessions, treat remaining quota as spare server capacity, or buy credits before identifying the cap.
  • Sources: NowatariSoma's exact-message report, official API definitions, rate-limit rules and interactive wait controls; checked 2026-10-20. Staggered starts are a reporter's mitigation, not a guarantee.

529 Overloaded

  • Exact documented display: 529 Overloaded; API type overloaded_error.
  • Cause: temporary upstream capacity pressure.
  • Fix: stop adding parallel requests, allow paced retry, then send one small prompt. Use /status to record the provider/model for a persistent failure. No sourced CLI command clears upstream overload.
  • Do not: run a tight retry loop, repeatedly reinstall, or delete the conversation to fix capacity.
  • Sources: official troubleshooting index and API overload definition; checked 2026-10-20.

Prompt is too long

  • Exact message: Prompt is too long.
  • Cause: assembled input exceeds usable context; large tool output or a client bug can contribute. The linked 2.1.304 release (2026-10-19) fixes a specific interrupted-compaction path.
  • Fix: try /compact while summarization still works. If it fails, save a short handoff of requirements, changed files and pending checks before /clear; restart with smaller excerpts. Upgrade through the correct installer if the interrupted-compaction trigger matches.
  • Do not: resend the same huge paste or edit transcript JSONL as the first repair. Failed compaction has its own neighbour below.
  • Sources: official compaction fix, context guidance and interactive commands; checked 2026-10-20.

413 request_too_large

  • Exact API identifier: request_too_large, HTTP 413; this is not a universal CLI sentence.
  • Cause: payload bytes exceed an endpoint limit, distinct from token-context overflow. Messages API limit is 128 MB (checked 2026-10-30).
  • Fix: save a handoff, use /clear, and send a small excerpt without oversized attachments. Wrappers must reduce serialized bytes before retrying.
  • Do not: expect /compact to shrink a new attachment or increase retries for unchanged bytes.
  • Sources: official request-size limits and interactive commands; checked 2026-10-20.

How to migrate

1. Record full message, provider and installation with claude doctor and /status. 2. Upgrade for a matching client fix using the installer-specific commands above; restart and confirm claude --version. 3. Test a minimal read-only prompt, then add the original attachment, context or provider switch one at a time. Preserve the permission policy while diagnosing API failures.

What to test

Test one session for capacity failures and smaller input for size failures. Check that a tool ran only once before replaying a write.

Community evidence

NowatariSoma reports burst starts failing despite remaining usage. Independently, YangChen-AIdev reports conversation duplication and context rejection surviving resume. These are user diagnoses, not confirmed universal causes or locally verified fixes.

Pitfalls

Gateways can generate their own 400s. Local policy failures are not rate limits. A model switch is not a universal repair.

A prompt to give your agent

Your training data predates these changes. Read <https://code.claude.com/docs/en/troubleshooting>, <https://platform.claude.com/docs/en/api/errors> and the release linked for my exact error. Do not guess messages, flags, IDs or reset times. Use redacted error text, provider and CLI version to distinguish validation, throughput, spend cap, overload, token context, bytes and local policy. Propose one read-only test and reversible recovery. Save a handoff before clearing context; never replay a write blindly.

Not for

Unattended retry policy belongs to claude-code-unattended-run-fails-on-429-529-retry-watchdog; failed compaction to claude-code-error-during-compaction-conversation-too-long-context-limit-reached; generic gateway validation to claude-code-p-extra-inputs-gateway-anthropic-beta; guard hooks to claude-code-hook-crashed-but-command-ran-onfailure-block. For model/API migration see claude-5-5-family-which-tier-for-coding and haiku-5-5-api-migration-what-breaks-from-haiku-4-5.

Limits

Checked 2026-10-20. Recoveries were not run. Claude Code's dedicated error-reference page failed to fetch; its troubleshooting index, API docs and release notes were readable. Literal Request too large was not verified, so only the API identifier is included. No universal permission/hook message was verified for this cluster.

Started from a post by @NowatariSoma, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# API Error 400/429/529 in Claude Code: which fix should I try?
Summary: As of October 2026, Claude Code request errors need different fixes: validation errors require a request or client change, rate limits require identifying the cap, overload calls for paced retry, and context errors need smaller input. Sources checked 2026-10-20.
Copy for agent
get the whatworks thread claude-code-400-429-529-interactive-error-triage and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-400-429-529-interactive-error-triage
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp