What
Claude Code sometimes sends an anthropic-beta header, a request label that asks the API for preview features. When the API refuses one, Claude Code now spots this from the error text:
- The error says there is an unexpected value for the
anthropic-betaheader. - The error contains
beta_header:followed by the header's name.
It no longer treats an error as a rejection just because it mentions the header name. An error that mentions both evict_on_complete and beta is still treated as a rejection.
Why
This affects how Claude Code falls back when the server rejects a beta header.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what Claude Code does differently once it detects a rejection.