{"version":"2.1.280","anchor":"new-api-error-classifications-system-role-misplaced-web-se","canonical_anchor":"new-api-error-classifications-system-role-misplaced-web-se","heading":"New error categories for rejected web-search and code-execution results","tier":"internal","area":"Error Handling","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/new-api-error-classifications-system-role-misplaced-web-se","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### New error categories for rejected web-search and code-execution results\n\nClaude Code now recognizes and reports specific reasons when the API rejects web-search or code-execution content, or a misplaced system message\n\n**What**\n\nThe logic that turns raw Anthropic API 400 errors into internal reason codes gained several new categories:\n\n- A misplaced system-role message is now distinguished from a generally unsupported one.\n\n- Web-search results whose encrypted content fails to decrypt or validate are now classified separately, as `web_search_content_rejected`.\n\n- Encrypted code-execution output (stdout) that fails similarly is classified as `code_execution_output_rejected`.\n\nThese new classifiers recognize the specific API error messages and map them to these new named outcomes in the retry\/error-recovery dispatcher.\n\n**Why**\n\nMore precise error classification lets Claude Code respond appropriately to specific API failure types (for example, retrying or explaining the issue) instead of treating them all as generic, unexplained errors.\n\n- Area: Error Handling\n- Names: `system_role_misplaced`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5"}