{"version":"2.1.324","anchor":"context-overflow-errors-from-provider-now-surfaced-with-the","canonical_anchor":"context-overflow-errors-from-provider-now-surfaced-with-the","heading":"Errors about an oversized request now show the provider's own message","tier":"notice","area":"API Errors","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/context-overflow-errors-from-provider-now-surfaced-with-the","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Errors about an oversized request now show the provider's own message\n\nWhen a provider rejects a request as too large, Claude Code now treats it as a prompt-too-long error and can show what the provider said\n\n**What**\n\nThe context is the amount of conversation the model can take in at once. A provider, the service that runs the model, can reject a request that is too large in its own words instead of with Claude Code's usual prompt-too-long error.\n\nWhen a request fails with status 400, 413, 422 or no status at all, and the message looks like a size or context error, Claude Code now treats it as a prompt that is too long. A status is the number a server sends back to say how a request went.\n\nWhen the conversation is a single exchange that cannot be shortened and no token counts are available, the error now ends with \"the provider said:\" followed by the provider's message, cut to 300 characters. Before, only Claude Code's own prompt-too-long errors were caught, and the message was a fixed note that the single exchange could not be compacted.\n\n**Why**\n\nIf you hit a size limit set by the provider, you now see the provider's reason instead of a generic message about compaction.\n\n- Area: API Errors\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}