{"version":"2.1.335","anchor":"dynamic-duckling-gate-map-api-errors-with-no-http-status-to","canonical_anchor":"dynamic-duckling-gate-map-api-errors-with-no-http-status-to","heading":"API errors without a status code can be treated as normal retryable errors","tier":"soon","area":"API Retries","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/dynamic-duckling-gate-map-api-errors-with-no-http-status-to","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### API errors without a status code can be treated as normal retryable errors\n\nBehind a remote switch that is off by default, API errors arriving with no status code get a matching one so normal retries apply\n\n**What**\n\nWhen Claude Code talks to the model, an error sometimes arrives partway through a reply without the usual numbered status code. New code gives such errors a status based on their type:\n\n- `rate_limit_error` becomes 429\n\n- `api_error` becomes 500\n\n- `timeout_error` becomes 504\n\n- `overloaded_error` becomes 529\n\nThe rebuilt error keeps its request ID and any wait time the server asked for. After repeated 500 errors it is marked as not to be retried. Claude Code also decides whether a reply that ended early on a retryable error can be tried again. This depends on how far the reply had got, or on whether it held only thinking and was cut off because the servers were overloaded.\n\nAll of this sits behind the `tengu_dynamic_duckling` switch, which is off unless it is turned on remotely. The flag server returned off both for this site's account and for an anonymous check, though no reading has been taken under this release yet.\n\n**Why**\n\nIf it is turned on, errors that interrupt a reply would go through the same retry rules as errors with a status code, instead of being handled separately.\n\n- Flag `tengu_dynamic_duckling`: Off in both readings (read for one account on one subscription tier against v2.1.335; this account: off, anonymous baseline: off, compiled default: off) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: API Retries\n- Names: `tengu_dynamic_duckling`\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}