{"version":"2.1.305","anchor":"http-error-handler-now-receives-response-headers","canonical_anchor":"http-error-handler-now-receives-response-headers","heading":"API error handling now also receives the response headers","tier":"internal","area":"Internals","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305\/e\/http-error-handler-now-receives-response-headers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.305","markdown":"### API error handling now also receives the response headers\n\nWhen an API request fails, Claude Code's error handling now gets the response headers as well as the status and data\n\n**Unclear.** It is not clear whether any error message you see changes as a result.\n\n**What**\n\nWhen a request to the API fails, Claude Code's error handling now also receives the response headers, the extra details a server sends back with a reply. Before, it got only the status code, the request and the reply data.\n\n**Why**\n\nThis may let error messages use details such as rate-limit information or a request ID.\n\n- Area: Internals\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}