Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.295 ·

Gateway guide: send x-should-retry: false with a 501 not supported response

The bundled gateway guide now says a 501 not supported response should send x-should-retry: false, or Claude Code retries once first

Use it now Improvements
JSON All of v2.1.295
Use it nowTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
LLM GatewayArea: what it touches
ImprovementsKind: in v2.1.295,
What probably matters to youSection of the release
What

An LLM gateway is a server you put between Claude Code and the model provider. Claude Code's bundled guidance for gateways now says that when a gateway replies with a 501 not_supported error, it should also send the header x-should-retry: false. Without that header, Claude Code tries the request once more, about half a second later, before it falls back.

Why

If you run a gateway, sending this header saves a pointless retry and a short delay whenever an endpoint is not available.

Read from
Names in the bundlex-should-retry
What the documentation says
Documented inapi/api/beta/dreams
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up x-should-retry, on Claude Code gateway compatibility guide. | `x-should-retry` | Pass the upstream's value through unchanged. Claude Code reads this header as one input when deciding whether to retry a failed request: `true` marks the response retryable and `false` marks it not retryable. For retry… llm-gateway-protocol see the edit
Added since A small documentation edit on compliance-errors touched a line naming x-should-retry after this was published. A 500 without the `x-should-retry: false` header is transient: retry with exponential backoff (start at 1 second, double up to 60 seconds). The same applies to 502, 503, 504, and 529 responses. The exception is a small set of local session… manage-claude/compliance-errors see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesA small documentation edit on compliance-errors touched a line naming x-should-retry after this was published.

See this entry in the whole of v2.1.295 →

Feedback