{"version":"2.1.331","anchor":"https-proxy-connect-replay-now-rejects-non-http-error-answer","canonical_anchor":"https-proxy-connect-replay-now-rejects-non-http-error-answer","heading":"HTTPS proxy connections fail clearly when the proxy gives an unexpected answer","tier":"notice","area":"Elsewhere","scope":"org","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/https-proxy-connect-replay-now-rejects-non-http-error-answer","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### HTTPS proxy connections fail clearly when the proxy gives an unexpected answer\n\nBehind an HTTPS proxy, a reply that is neither success nor an HTTP error now ends the request with a clear error, not a replayed bad response\n\n**What**\n\nWhen Claude Code connects through a proxy (a server that forwards your network traffic) and the proxy refuses the secure connection, Claude Code passes the proxy's saved reply back to the request. It now does this only if the reply starts with an HTTP error status (4xx or 5xx). Otherwise the request stops with the error \"Proxy answered CONNECT with neither 200 nor an error\" and the code `ERR_PROXY_TUNNEL`. Before, the reply was always passed back.\n\n**Why**\n\nIf you work behind an HTTPS proxy, you get a clear error instead of a confusing reply made from a bogus proxy response.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: org\n- Heads-up: yes"}