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.
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 sinceAnthropic'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-protocolsee the edit
Added sinceA 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-errorssee 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.