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.285 ·

SDK result messages include the API error when there is one

The SDK's result message now includes api_error when present, alongside api_error_status and api_error_code

You'll notice Improvements
JSON All of v2.1.285
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
ImprovementsKind: in v2.1.285,
ImprovementsSection of the release

Unclear When api_error is actually filled in is not stated.

What

The Agent SDK lets programs run Claude Code. The result message it returns at the end of a run now includes an api_error field when one is present. Before, it carried only api_error_status and api_error_code.

Why

Programs using the SDK get more detail about an API error.

Read from
Names in the bundleapi_error
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 api_error, on Configure a custom OpenTelemetry collector. | `office_agent.api_error` | Each model call that is refused, fails, is cut off, or that the user stops | office-agents/opentelemetry see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhen `api_error` is actually filled in is not stated.
Anthropic's documentation agreesAnthropic's documentation has since written up api_error, on Configure a custom OpenTelemetry collector.

See this entry in the whole of v2.1.285 →

Feedback