{"version":"2.1.281","anchor":"api-error-text-html-error-pages-collapse-to-status-code-r","canonical_anchor":"api-error-text-html-error-pages-collapse-to-status-code-r","heading":"API error text: HTML error pages collapse to status code + reason","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/api-error-text-html-error-pages-collapse-to-status-code-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### API error text: HTML error pages collapse to status code + reason\n\nAPI errors that arrive as an HTML web page now show the status code and its standard reason instead of raw page markup\n\n**What**\n\nSometimes an error from the API comes back as an HTML web page rather than a plain message. When nothing useful can be pulled out of that page, Claude Code now shows a short error instead:\n\n- With a known status code: the code plus its standard reason phrase, for example a number followed by its usual name\n\n- With no status code: \"API error (status unknown)\"\n\n- When readable text was extracted but it lacks the status number: that text with the status number put in front\n\nIn all other cases the original message is shown with any trailing blank space trimmed.\n\n**Why**\n\nAn error that used to fill the screen with web page code now reads as a single short line, and the status number stays visible so it can be looked up or reported."}