{"version":"2.1.326","anchor":"new-tls-error-category","canonical_anchor":"new-tls-error-category","heading":"New API error kinds: TLS signature failure and message over context limit","tier":"notice","area":"Internals","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/new-tls-error-category","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### New API error kinds: TLS signature failure and message over context limit\n\nClaude Code adds error kinds for TLS certificate signature failures, a slow TLS handshake, and a turn too large for any context window\n\n**What**\n\nWhen a request to the API fails, Claude Code labels the failure with a kind so programs built on it can react. Several new kinds and messages were added:\n\n- `tls_cert_signature_failure`, next to the existing `tls_untrusted_ca`, for when the server's security certificate fails its signature check. TLS is the encryption used for the connection.\n\n- A new error when the TLS handshake (the start of a secure connection) does not finish in time: `The TLS handshake with the server did not finish in the time allowed. Check the network or proxy.`\n\n- `message_over_context_limit`, for when the turn's own text is larger than the biggest context window the API accepts, so no request is sent at all. It is handled the same way as `unattended_start_unconfirmed`.\n\n- The description of `empty_completion` was widened.\n\n**Why**\n\nPrograms built with the Agent SDK can now tell these failures apart and show a specific message. A certificate problem or an oversized prompt no longer looks like a generic API error.\n\n- Area: Internals\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}