Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.274 ·

New structured apiError codes attached to rate-limit/format error responses

API error responses now carry structured error codes like pdf_too_large alongside plain-text messages

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaAPI Errorswhat it touches
KindImprovementsin v2.1.274,
Under the hood

API error responses now carry structured error codes like pdf_too_large alongside plain-text messages

What

When the API returns a rate-limit or invalid-request error, Claude Code now attaches a structured apiError code identifying the specific cause, in addition to the existing free-text error message. New codes include:

  • model_requires_usage_credits
  • long_context_credits_required
  • pdf_too_large
  • pdf_password_protected
Why

Structured error codes let Claude Code (and anything reading these errors) distinguish specific failure causes, such as an oversized or password-protected PDF, rather than relying only on parsing a text message.

See this entry in the whole of v2.1.274 →