Claude Code Error Reference - Messages, Causes, Retry Behavior, and Fixes by Provider and Surface
First Published:
Last Updated:
This article serves as an index, drawing information from the official Error reference page to help you identify the cause, relevant settings, and solutions based on the error messages displayed. The key areas of focus are: whether Claude Code automatically retries, whose side the problem is on, which surface shows it, and how the wording changes by provider. Rather than reproducing lengthy excerpts from the official page, this article quotes only the error message strings and gives causes and fixes in this article's own words.
The check date is 2026-12-02, and the Claude Code versions checked run through 2.1.334 (2026-12-01) in the CHANGELOG. This article does not cover pricing, the amounts of usage limits, or contracts.
Related articles on this site:
- Anthropic Claude API Errors Reference - HTTP Status Codes, Error Types, Causes, and Official Solutions
- Practical Guide to Deploying Claude Code and Claude Desktop Behind a Corporate Proxy - Domains, MSIX, NTLM/Kerberos, and VPN Coexistence
- Which Model a Claude Code Session Runs - Model Aliases by Provider, availableModels, and Two Kinds of Fallback
- Claude Platform on AWS or Amazon Bedrock - Who Operates It, What Differs, and What a Move Breaks
- Claude Code Version History and Timeline - Release Channels, Changed Defaults, and Where Each Version Date Comes From
Table of Contents
- 1. How to Use This Reference and the Check Date
- 2. Automatic Retries
- 3. Section Map
- 4. Representative Messages by Section
- 5. Authentication Errors by Provider
- 6. Differences by Surface and Remote Control
- 7. When a Message Is Not in the Reference
- 8. Frequently Asked Questions about Claude Code Errors
- 9. Summary
- 10. References
1. How to Use This Reference and the Check Date
This chapter first sets out the readers, the scope, the materials read, the labels on statements, and how to look up a message. The conclusions come first, in these eight points.- The page has 13 error sections, with 309 entries under them in total. The page has 311
###headings, and the difference of 2 is the two subsections under the automatic retries section (Chapter 3). - The up-to-10 retries the page describes are the default value of the environment variable
CLAUDE_CODE_MAX_RETRIES. The cap is 15, and on v2.1.199 or later, settingCLAUDE_CODE_RETRY_WATCHDOGremoves the cap. The number of retries varies depending on the type of failure, with some failures getting only one or two retries (Section 2.1). - Claude Code sometimes does not re-send a request that fails partway through a response. If Claude has finished a block or a tool call, Claude Code keeps it and continues. This is to avoid running the same tool twice (Section 2.3).
- Failures related to TLS certificate verification are not retried and appear on the first attempt. Temporary TLS failures, such as handshake timeouts, will be retried (Section 2.3).
- The error message
API Error: Repeated 529 Overloaded errorsindicates a general capacity limitation, not a limitation on your individual usage (Section 4.1). - Amazon Bedrock returns the same 403 for both expired credentials and permission denials. Claude Code cannot tell the two apart, and
AWS authentication failedgives the fixes for both. Claude Platform on AWS and Bedrock's Mantle endpoint return a 401 error for expired credentials, resulting in the messageAWS credentials expired or invalid(Sections 5.2 and 5.3). - Except for Wrapper and IDE errors, what the page says applies equally to the CLI, Desktop, and cloud sessions. In Desktop, some messages are worded differently, and this article counts seven such entries (Chapter 6).
- Remote Control functionality is only available for sessions directly connected to the Anthropic API. It is not supported with Bedrock, Claude Platform on AWS, Google Cloud, Microsoft Foundry, a gateway set through
ANTHROPIC_BASE_URL, or Claude apps gateway (Section 6.6).
1.1 Intended Audience
This article is for individuals and teams who use Claude Code and whose work has stopped at a message on the screen. This includes operators who distribute Claude Code through Amazon Bedrock, Google Cloud, Microsoft Foundry, or a gateway, as well as those who run it unattended in CI. Every one of these readers first wants to know whether the message points to their own configuration, to the provider's side, or to something that clears if they wait.1.2 Scope: What Is Included and Excluded
This article covers the section map of the Error reference page, representative messages for each section, automatic retries and related environment variables, authentication errors by provider, differences by surface, Remote Control, version boundaries, and the check date.The following topics are out of scope, each with the article or page that covers it:
- The meaning of API HTTP statuses (400 through 529): Anthropic Claude API Errors Reference
- The design of corporate proxies and certificates: Section 9.1 of Practical Guide to Deploying Claude Code and Claude Desktop Behind a Corporate Proxy
- Errors that trigger model fallback versus those that do not: Section 5.1 of Which Model a Claude Code Session Runs
- The relationship between
/goaland automatic retries: Section 6.2 of Claude Code /goal - What the Evaluator Sees, When a Goal Clears, and How It Differs from a Stop Hook - The denial when auto mode gets no verdict: Where Claude Code Auto Mode Gets Its Verdict
- Configuration steps for providers and authentication priority: Claude Code on Pay-As-You-Go API Billing
- API exceptions from Bedrock (e.g.,
ExpiredTokenException): Amazon Bedrock Errors and Exceptions Reference - Installation failures: the official Troubleshoot installation and login page (Section 7.1)
For Command-line errors (69 entries) and Plugin errors (16 entries), this article gives only the entry counts and representative messages and leaves the explanation of each entry to the page. The Error reference page does not mention the JetBrains IDE plugin (Section 6.5).
1.3 Check Date and Materials Read
The check date is 2026-12-02. During this day, the Error reference page changed twice, from 654,140 bytes to 654,038 bytes and then to 654,810 bytes. The changes included the explanation of how a non-interactive session continues a cut-off response, updating the name of a link for the VS Code extension, and adding rows to a table. The number of headings remained consistent:## appeared 17 times, and ### appeared 311 times. This article was based on a version obtained on 2026-12-02T04:01:34Z.The version of Claude Code that was compared was up to version 2.1.334 (2026-12-01), as documented in the official changelog and on GitHub under
CHANGELOG.md. The page writes version boundaries in the form Before v2.1.xxx, and this article counts 261 of them. This article only highlights boundaries related to the messages included within it.The following four categories of materials were reviewed:
| Category | Role in this Article | Materials Reviewed |
|---|---|---|
| Error and Troubleshooting for Claude Code | Original documentation for messages, causes, and solutions | Error reference, Troubleshooting, Troubleshoot installation and login, Debug your configuration, Remote Control |
| Providers and Networks | Configuration and available features for each provider | Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, Claude Models on Google Cloud (Anthropic managed), Microsoft Foundry, Other LLM gateways, Connect Claude Code to an LLM gateway, Enterprise network configuration, Feature availability, Environment variables, VS Code, Desktop, JetBrains |
| Version History | Version boundaries and the latest version as of the check date | Changelog page, GitHub repository CHANGELOG.md |
| Claude Platform API Documentation | Definitions of HTTP statuses (where the division of coverage lies) | Claude API errors |
1.4 Labels on Statements
This article puts one of the following three labels on each statement.| Label | Meaning |
|---|---|
| Stated | Found on the official page listed in Section 1.3. |
| Not stated | Not found in the pages reviewed by this article. This does not constitute proof of non-existence. |
| Inference | Derived by this article from the information presented on the pages. |
This article has not performed any real-world testing. The message strings are taken directly from examples found on the pages, and may not be identical to what appears on your screen. The pages also state that the central portion of the wording can vary depending on the settings (Stated).
1.5 Four Axes and How to Look Up a Message
When a message appears on the screen, this article recommends looking it up in the following order (Inference).- Locate the unchanging portion at the beginning of the message and, using Table 1 in Chapter 3 and Table 2 in Chapter 4, determine the section.
- Verify in Chapter 2 whether Claude Code automatically retries the process after a failure. If a message appears after a retry, repeating the same operation immediately is likely to produce similar results.
- Decide whose side the problem is on, out of four: your configuration, the provider, the network, or usage. Some sections in Table 1 fall on the launching program's side or your environment's side.
- If the message relates to authentication, verify in Chapter 5 which provider generated it. The same authentication expiry produces different wording and a different HTTP status depending on the provider.
- If the message appears in Desktop, cloud sessions, or VS Code, verify the differences in wording as described in Chapter 6.

2. Automatic Retries
This chapter describes what Claude Code retries, and what it does not, before it shows an error message. At the point the message is displayed, Claude Code has already completed any applicable retries (Stated).2.1 How to Read the Retry Count of 10
The page's Automatic retries section opens with the following sentence (Stated):Claude Code retries transient failures up to 10 times with exponential backoff before showing you an error.
This 10 is the default value of the environment variable
CLAUDE_CODE_MAX_RETRIES (Stated). The maximum limit is 15, starting from version v2.1.186 (Stated). On v2.1.199 or later, setting CLAUDE_CODE_RETRY_WATCHDOG removes this cap, and the default number of retries for transient failures (excluding capacity errors) becomes 300 (Stated).The 10 is not always used. The number of retries varies depending on the type of failure (Stated).
- Server errors occurring after Claude has finished thinking but before it starts any text or tool call: Maximum 2 retries.
- Stalled streams: Maximum 1 retry.
- Responses blocked by the output content filter: 1 retry.
- Responses that say Claude is calling a tool but contain no tool call: Maximum 2 retries.
- Google Cloud's Agent Platform credential expiration or absence, or inability to read AWS credentials: Maximum 2 retries.
The environment variables page says retrying can stop earlier on 529 errors. For example, with an API key on an Opus model, it stops at the third 529 and shows a
Repeated 529 Overloaded errors message (Stated). If a fallback model is configured, Claude Code switches to that model without displaying an error (Stated). Details regarding fallback models are outlined in Section 5.1 of Which Model a Claude Code Session Runs.2.2 What Claude Code Retries
The page says Claude Code retries the following failures (Stated).- Server errors, overload responses, or request timeouts that arrive before any of Claude's response has streamed.
- Server errors and overload responses that arrive after Claude has finished thinking but before it starts any text or tool call. A server error at that point is retried up to two times.
- Disconnected connections. If the connection drops before Claude has completed any part of its response, including its thinking, Claude Code re-sends the request with the same backoff. This applies even if some text has already started streaming. If it drops after Claude has finished thinking but before any text or tool call, Claude Code re-sends the request up to two times in quick succession. If the connection is still lost, the turn will end with the message
Connection lost before a response was produced. - Connections lost due to the computer entering sleep mode during the request. These will be treated as disconnected connections.
- Stalled streams (e.g., when the response header is received, but no further response from Claude is received). A maximum of one retry will be attempted.
- Requests that get no response headers by the first-byte deadline. Claude Code aborts the request at the deadline and re-sends it within the retry budget.
- Temporary 429 throttles. This does not include a Claude apps gateway spend-limit 429, which is not a throttle.
- Requests where the combined total of the input and
max_tokensexceeds the context limit. The request will be resent with a reducedmax_tokensvalue. If reducing it cannot make the request fit, Claude Code compacts the conversation instead of re-sending. - Expired or missing credentials for Google Cloud's Agent Platform, or unreadable AWS credentials. Claude Code discards the credentials it holds, retries up to two times, and then reports the error right away.
- 401 or 403 errors from the Anthropic API while the
apiKeyHelperscript is providing credentials. Claude Code re-runs the script and retries with its fresh output. The same applies through a gateway.
2.3 What Claude Code Does Not Retry
The page says Claude Code does not retry the following failures (Stated).- Failure to validate TLS certificates. Examples are a TLS-inspecting proxy, a missing
NODE_EXTRA_CA_CERTSbundle, or an expired certificate. Claude Code reports these on the first attempt. Temporary TLS failures, such as handshake timeouts, will be retried. Before v2.1.199, certificate failures too were retried through the full retry budget before the error appeared. - Server errors, disconnected connections, or stalled streams that arrive after Claude has completed a block of text or a tool call, or has started one after finishing its thinking, but before it finishes the response. Re-sending the request could run the same tool calls twice, so Claude Code does not re-send it. The completed portion is preserved, the completed tool call is executed, and the turn continues from that result.
- Server errors, disconnected connections, or stalled streams occurring after Claude has completed writing its response. The completed response is preserved, and the turn is concluded normally.
- When the content-type of a streaming response from Amazon Bedrock does not match the expected value (version 2.1.208 and later). This is because intermediate gateways or proxies may be modifying the response, and retries would similarly be modified.
- A non-streaming re-send of a failed streaming request that gets a success status but whose body is not a Claude API message.
- Requests that are rejected due to organizational policy checks. The denial is about the request's content, so Claude Code sends it again neither to the same model nor to a fallback model.

2.4 What You See During Retries
During retries, the spinner displays a countdown after the error label, showingRetrying in Ns · attempt x/y (Stated). Failures that you can address immediately, such as network outages, failed TLS handshakes, or rate limits, will display the reason directly in the initial error label (Stated). For other failures, the label reads API error at first, and on v2.1.198 or later it switches to the specific reason from the third attempt (Stated).The
Waiting for API response · will retry in … · check your network banner indicates that no data has been received for a particular request for 20 seconds or longer (Stated). The request has not yet failed. This countdown shows the time before Claude Code terminates the stalled connection (Stated). On v2.1.309 or later, the banner appears after 45 seconds when ANTHROPIC_BASE_URL points at a host other than the Anthropic API, in a Claude apps gateway session, and on Claude Platform on AWS with ANTHROPIC_AWS_BASE_URL set (Stated). If the banner appears on every attempt, the page recommends treating it as a network problem (Stated).2.5 Modifying with Environment Variables
The page has a Tune retry behavior table (Stated). From it, this article picks the variables its readers are most likely to touch first.| Variable | Default | What Changes |
|---|---|---|
CLAUDE_CODE_MAX_RETRIES | 10 | The number of retry attempts. Capped at 15 (on v2.1.199 or later, setting the watchdog removes the cap). Lower this value if you want scripts to fail more quickly. |
CLAUDE_CODE_RETRY_WATCHDOG | Not Set | When set to 1, it continues to retry requests encountering 429 and 529 capacity errors, even exceeding the CLAUDE_CODE_MAX_RETRIES limit. Suitable for unattended sessions like CI environments. Version 2.1.186 and later. |
CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS | Not Set | When the watchdog is enabled, this sets the maximum time (in milliseconds) a single request will wait for 429 and 529 errors. If not set, there is no limit. Version 2.1.295 and later. |
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS | 500 | The initial delay (in milliseconds) before retrying requests encountering 529 errors. Can be increased up to 32000. Does not apply when the watchdog is enabled or when using fast mode requests. Version 2.1.292 and later. |
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS | 32000 | The maximum delay (in milliseconds) before retrying requests encountering 529 errors. Can be increased up to 300000 (values exceeding 64000 are supported from version 2.1.323). Has no effect in the same cases as the row above. Version 2.1.296 and later. |
API_TIMEOUT_MS | 600000 | The time (in milliseconds) a request will wait to receive a response header from each attempt. Does not limit the length of the response after it has begun. |
CLAUDE_CODE_NONSTREAMING_TIMEOUT_RETRIES | Not Set | The maximum number of retries for non-streaming requests that time out. Version 2.1.285 and later. |
CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS | Not Set | The timeout (in milliseconds) for receiving the first byte of a streaming request. Version 2.1.242 and later. |
The table also includes two additional variables related to waiting for usage limits to reset (Stated). This article does not cover what usage limits contain, so it leaves those to the page.
Even with the watchdog set, Claude Code stops retrying on these responses (Stated): a
429 from a usage-credit spend limit or from a Claude apps gateway spend limit that resets on a schedule, a 429 for exhausted usage credits, and a 429 or 529 with the x-should-retry: false header. The first two require v2.1.239 or later, and the last requires v2.1.311 or later (Stated).2.6 CI and Unattended Execution
Two rows of the page's table let you choose a setup for unattended runs (Inference). For jobs that should run to the end even if they have to wait out a capacity shortage, setCLAUDE_CODE_RETRY_WATCHDOG=1 and define the maximum wait time using CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS (available from version 2.1.295 and later). For scripts where you need to know immediately if a failure occurs, reduce the value of CLAUDE_CODE_MAX_RETRIES. In either case, failures related to TLS certificate issues or organizational policy rejections appear on the first attempt (Section 2.3).3. Section Map
This chapter puts the 13 sections of the Error reference page into one table. The entry counts are the number of### headings in the version fetched at 2026-12-02T04:01:34Z.3.1 Table 1: The 13 Sections
| Section (Page Heading) | Entries | Mainly Covers | Mostly Whose Side (Inference) | Representative Entry (Page Heading) |
|---|---|---|---|---|
| Server errors | 9 | 5xx, 529, timeouts, failures mid-response, auto mode verdicts | Provider | API Error: Repeated 529 Overloaded errors |
| Usage limits | 9 | Plan usage allowances, temporary throttles, 429, prepaid credits, spend limits | Usage | You've hit your session limit |
| Authentication errors | 48 | Login, API keys, organization settings, Remote Control, MCP OAuth, provider credentials, gateways | Your configuration | Not logged in |
| Network and connection errors | 18 | Connection failures, certificates, malformed responses, the cloud session allowlist | Network | Unable to connect to API |
| Request errors | 36 | Context length, request size, images and PDFs, model selection, thinking settings, refusals | Your configuration | Prompt is too long |
| Command-line errors | 69 | Flag combinations, configuration files, adding MCP servers, ultrareview, GitHub connections, resuming | Your configuration | Input must be provided when using --print |
| Plugin errors | 16 | Adding marketplaces, loading plugins, plugins the organization requires | Your configuration | Plugin archive integrity check failed |
| Tool errors | 38 | Refused tool calls, file reads and writes, MCP tools, WebFetch | Your configuration | File is not valid UTF-8 |
| Background session errors | 21 | Starting background sessions, worktrees, resuming | Your configuration | Session isn't responding |
| Wrapper and IDE errors | 6 | Failures of Claude Code launched by the VS Code extension, the Agent SDK, or Desktop | The launching program | Claude Code process exited with code N |
| Rewind warnings and errors | 2 | Failures when restoring code with /rewind | Your environment | No files were restored |
| Session saving warnings | 3 | Writing the transcript | Your environment | Transcript writes are failing |
| Configuration warnings | 34 | Managed settings, permission rules, hooks, model selection, configuration files | Your configuration | Workspace has not been trusted |
The counts are this article's count of the
### headings under each section of the page. The 13 sections add up to 309. The difference of 2 from the page's 311 ### headings is the two subsections under Automatic retries. Besides the 13 sections, the page's 17 ## headings include four more sections: Find your error, Automatic retries, Responses seem lower quality than usual, and Report an error.The whose-side column shows a tendency for the whole section, and individual entries differ (Inference). For example, the 48 entries of Authentication errors include your own expired credential, an organization admin turning off API key authentication, and a provider denying permission.
3.2 Find Your Error Table
Find your error, at the top of the page, is a table that takes you from a message string to its section (Stated). Looking a message up in this table makes it less likely to mix up sections with similar wording than searching the page for part of the message (Inference). Tables 1 and 2 in this article hold only sections and representative entries, and the full list of entries stays in the page's table.4. Representative Messages by Section
This chapter picks representative messages from the four sections readers are most likely to meet, Server errors, Usage limits, Network and connection errors, and Request errors, and puts their causes, fixes, and retry behavior into one table. The remaining nine sections get a short note in Section 4.6.4.1 Server Errors
API Error: 500 Internal server error is an example of a 5xx response. Claude Code provides a status code and an API error message for any 5xx error (Stated). The final part of the message varies depending on the provider (Stated).API Error: Repeated 529 Overloaded errors indicates that the API is temporarily experiencing capacity limitations for all users (Stated). 529 does not reflect individual usage limits and does not consume any quota (Stated). The page recommends checking the status page, trying again in a few minutes, or switching to a different model via /model. This is because capacity is monitored on a per-model basis (Stated).Request timed out indicates that the API did not respond before the connection deadline. The default request timeout is 10 minutes (Stated). API Error: No response from API indicates that, for streaming requests, the response header did not arrive before the deadline for the first byte (Stated). If a proxy or gateway holds responses until they complete, raise API_TIMEOUT_MS. On Amazon Bedrock, also raise CLAUDE_STREAM_FIRST_BYTE_TIMEOUT_MS (Stated).Messages ending with
The response above may be incomplete indicate an interrupted response, as described in Section 2.3 (Stated). In an interactive session, read the response that remains on screen and reply continue to have Claude pick up from there (Stated). To continue in a non-interactive session such as a -p run, resume the session once the connection is stable and send continue (Stated).Of the nine Server errors entries, the three about auto mode verdicts are left to Where Claude Code Auto Mode Gets Its Verdict.
4.2 Usage Limits
You've hit your session limit · resets … indicates that you have exceeded the usage allowance for your subscription plan (Stated). Messages of the same form appear for the weekly allowance and for model-family allowances (Stated). The page recommends waiting until the time shown, checking your allowances and reset times with /usage, and, for an Opus or Sonnet limit, switching with /model to a model outside that family (Stated).API Error: Server is temporarily limiting requests (not your usage limit) indicates a brief restriction unrelated to your plan's allowance (Stated). Claude Code tells the two apart by the absence of the headers that a real limit response carries (Stated). From version v2.1.199 onwards, this error will appear after an automatic retry, regardless of your authentication method (Stated).API Error: Request rejected (429) indicates that you have reached a rate limit set for your API key, Amazon Bedrock project, or Google Cloud project (Stated). The page recommends first checking with /status that the active credential is the one you expect. The environment may contain an ANTHROPIC_API_KEY that is inadvertently sending requests using a lower-tier API key instead of your subscription (Stated).Credit balance is too low indicates that your organization's prepaid credit in the Console has been exhausted, or that Claude Code is sending requests with a Console API key when you meant to use your subscription (Stated). If a subscription user sees this, check the API key row in /status and remove any unnecessary ANTHROPIC_API_KEY (Stated).Both
Server is temporarily limiting requests and Request rejected (429) indicate that your request was limited, but they have different meanings (Inference). The former represents a temporary limitation on the API's side, while the latter is due to limits configured for your key or project. Determine which message you are seeing first. The page's example of the Request rejected (429) message continues with this may be a temporary capacity issue (Stated). To avoid mistaking it for the former by its wording alone, tell them apart by the Request rejected (429) part (Inference).4.3 Network and Connection Errors
Unable to connect to API indicates that the TCP connection to the API has failed or was not completed (Stated). Common error codes are accompanied by wording, which describes the type of failure, with the error code itself enclosed in parentheses. For example, Connection refused — a firewall or proxy may be blocking it (ConnectionRefused) or Connection dropped (ECONNRESET) (Stated). Prior to version 2.1.227, only the error code itself was appended, such as Unable to connect to API (ECONNREFUSED) (Stated). The page recommends checking that you can reach the API host by running curl -I https://api.anthropic.com from the same shell (Stated). In Windows PowerShell, type curl.exe -I https://api.anthropic.com so that the built-in alias does not run instead (Stated). The LLM gateway connection page says this message often appears after a silent pause while Claude Code retries with backoff (Stated).Certificate errors appear as
Unable to connect to API: SSL certificate verification failed (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) (Stated). During /login and the startup connectivity check, the same failure produces a different message that starts with SSL certificate error (UNABLE_TO_GET_ISSUER_CERT_LOCALLY) (Stated). This is frequently caused by internal proxies inspecting TLS connections or gateways signed with a private CA (Stated). To resolve this, configure the CA bundle using NODE_EXTRA_CA_CERTS or add it to the system's certificate store (Stated). The design of proxies and certificates is left to Section 9.1 of Practical Guide to Deploying Claude Code and Claude Desktop Behind a Corporate Proxy.Socket is closed indicates that the connection carrying a streaming response closed while the response was still arriving (Stated). The most common cause is a corporate proxy on Windows dropping an established tunnel partway through (Stated). Before v2.1.214, Claude Code did not retry this failure. The page recommends updating to version 2.1.214 or later (Stated).API returned an empty or malformed response (HTTP 200) indicates that a non-streaming re-send got a success status but its body was not a Claude API message (Stated). This is typical of proxies or gateways that return HTML error pages or sign-in pages (Stated).Bedrock streaming response has content-type "text/event-stream"; expected "application/vnd.amazon.eventstream" indicates that a gateway or proxy between Claude Code and Bedrock is modifying the streaming response (Stated). The correct configuration is to ensure that the gateway passes the response body and Content-Type header from InvokeModelWithResponseStream without alteration (Stated).4.4 Request Errors
Prompt is too long indicates that the conversation and attachments have exceeded the model's context window (Stated). In an interactive session, this error appears as Context limit reached · /compact or /clear to continue (Stated). The page recommends /compact, /clear, checking the breakdown with /context, and turning off MCP servers you are not using (Stated).Request too large (max 32MB) indicates that the request body exceeds the API's 32MB limit before it is tokenized (Stated). This is a separate limitation from the context window (Stated).There's an issue with the selected model (…) indicates that the configured model name was not recognized or that your account lacks access to it (Stated). Fix it with /model in the interactive CLI, with --model or ANTHROPIC_MODEL in non-interactive -p runs, and with the model option in the Agent SDK (Stated).API Error: 400 Claude Code … does not support this model; version … or newer is required. indicates that the version of Claude Code is older than the minimum version required by the selected model or your organization's policies (Stated). Update using claude update (Stated).4.5 Table 2: Representative Messages
| Message (Leading Text) | Section | Cause (Page Summary) | Fix | Retry |
|---|---|---|---|---|
API Error: 500 Internal server error | Server errors | Provider's 5xx error. | Wait a bit. If it continues, check the status page. | If before the response, appears after retries |
API Error: Repeated 529 Overloaded errors | Server errors | Overall capacity shortage. Not due to usage limits. | Wait. Check the status page. Try a different model using /model. | Appears after retries; one example stops at the third 529 |
Request timed out | Server errors (Network if the message mentions your internet connection) | No response before the deadline. | Try again. If the message references variables, follow those instructions. | Eligible for retry if the response hasn't appeared yet. |
API Error: No response from API | Server errors | No response headers before the first-byte deadline. | If a proxy buffers responses, increase API_TIMEOUT_MS. | Appears after resending within budget. |
… The response above may be incomplete. | Server errors | Failure during response delivery. | Read the remaining response and reply continue | Not re-sent |
You've hit your session limit · resets … | Usage limits | Exceeded plan usage limit. | Wait until the displayed time. Check using /usage. | Not stated |
API Error: Server is temporarily limiting requests (not your usage limit) | Usage limits | Temporary rate limiting on the API side. | Wait a bit. | Appears after a retry in versions v2.1.199 and later. |
API Error: Request rejected (429) | Usage limits | Rate limiting for the key or project. | Check the credential with /status. Reduce concurrency. | Not stated |
Credit balance is too low | Usage limits | Prepaid credits used up, or an unintended API key | Check the API key row in /status | Not stated |
Unable to connect to API | Network and connection errors | TCP connection failure. | Use curl -I https://api.anthropic.com to see if a connection can be established. | Often appears after a retry. |
Unable to connect to API: SSL certificate verification failed (…) | Network and connection errors | Certificate of a TLS-inspecting proxy | Set the CA bundle in NODE_EXTRA_CA_CERTS. | Not retried |
Socket is closed | Network and connection errors | Connection closed during response delivery. | Update to version v2.1.214 or later. | Depending on progress, retried, kept, or ended |
API returned an empty or malformed response (HTTP 200) | Network and connection errors | Intermediate path returned a response that is not from the API. | Test that route with a direct request | Not retried |
Bedrock streaming response has content-type … | Network and connection errors | Intermediate path modified the stream. | Pass the body and header through unchanged | Not retried |
Prompt is too long | Request errors | Exceeded the context window. | Use /compact, /clear, or /context. | Not stated |
Request too large (max 32MB) | Request errors | Request body exceeds 32MB. | Use /compact or remove attachments. If the message says compacting cannot make it fit, press Esc twice or run /clear. | Not stated |
There's an issue with the selected model (…) | Request errors | Model name is not recognized or access is not permitted. | Use /model, --model, or ANTHROPIC_MODEL. | Not stated |
Not stated in the Retry column means the page's automatic retries section does not name that failure. It does not mean the failure is never retried.
4.6 The Other Nine Sections
Authentication errors (48 entries) are covered by provider in Chapter 5, and the five entries about Remote Control in Section 6.6.Command-line errors (69 entries) are errors at the moment you run a command, including combinations of flags, configuration files, adding MCP servers, ultrareview, GitHub connection, and resuming conversations (Stated: entry headings). Plugin errors (16 entries) concern marketplace and plugin loading, while Tool errors (38 entries) involve refused tool calls and file read/write operations. Background session errors (21 entries) address the initiation and resumption of background sessions (Stated: entry headings).
Wrapper and IDE errors (6 entries) are covered in Section 6.4. Rewind warnings and errors (2 entries) relate to the operation of reverting code using
/rewind. Session saving warnings (3 entries) concern writing the transcript, and Configuration warnings (34 entries) cover managed settings, permission rules, hooks, and warnings related to configuration files (Stated: entry headings).Many entries in these nine sections carry the fix inside the message itself. The quickest route is to look the message up as it is in the Find your error table (Inference).
5. Authentication Errors by Provider
This chapter takes the Authentication errors entries whose wording and HTTP status change by provider, and puts them into seven rows. Provider setup steps are left to Claude Code on Pay-As-You-Go API Billing and the official documentation for each provider.5.1 Table 3: Provider and Authentication Errors
| Provider (Setting That Selects It) | When Expired | When Denied | Does /login Fix It? | How to Fix |
|---|---|---|---|---|
| Anthropic API (claude.ai login or API key) | Login expired · Please run /login, Please run /login · API Error: 401 OAuth token has expired | OAuth token revoked · Please run /login, Please run /login · API Error: 401 Invalid authentication credentials, Invalid API key · Fix external API key | Yes when only the login is active (if the same message returns, ask your admin). No when an approved ANTHROPIC_API_KEY takes precedence | /login. If using an API key, correct ANTHROPIC_API_KEY or apiKeyHelper. |
Amazon Bedrock (CLAUDE_CODE_USE_BEDROCK) | AWS authentication failed (403) | AWS authentication failed (403) | Not stated | Update credentials. If the issue persists, verify IAM permissions and model access. |
Claude Platform on AWS (CLAUDE_CODE_USE_ANTHROPIC_AWS) and Bedrock Mantle endpoint (CLAUDE_CODE_USE_MANTLE) | AWS credentials expired or invalid (401) | AWS authentication failed (403) | On Claude Platform on AWS with awsAuthRefresh set, you can refresh from /login | Update credentials using aws sso login or similar. |
Google Cloud's Agent Platform (CLAUDE_CODE_USE_VERTEX) | Google Cloud credentials expired or invalid (401) | Google Cloud authentication failed (403) | No. The generic /login hint cannot refresh Google Cloud credentials | Update credentials using gcloud auth application-default login or similar. If you receive a 403 error, verify IAM permissions and model activation. |
Microsoft Foundry (CLAUDE_CODE_USE_FOUNDRY) | Microsoft Foundry authentication failed (401 or 403) | Microsoft Foundry authentication failed (401 or 403) | No. /login cannot mint Azure credentials | Replace the API key or token, or use az login. |
LLM gateway (ANTHROPIC_BASE_URL) | The text after 401 is the gateway's | The text after 401 is the gateway's | No | Correct the credentials required by the gateway. |
Claude apps gateway (gateway sign-in through /login) | Cloud gateway session expired — run /login to reconnect. | Gateway refused the request (403) | Yes for expiry, no for a refusal | For a refusal, ask the gateway administrator |
The wording in the table is the leading part of the page's examples, and the hint in the middle varies with your setup (Stated). In five entries, the two for AWS, the two for Google Cloud, and the one for Foundry, the page says the stable part is the leading wording (Stated).
5.2 Amazon Bedrock's 403 Has Two Meanings
The page says Amazon Bedrock reports an expired security token as a 403, and also reports an authorization denial, such as anAccessDeniedException from a missing IAM permission, as a 403 (Stated). Claude Code cannot tell these two apart (Stated).Claude Code can't tell those two causes apart.
Therefore,
AWS authentication failed provides guidance for both updating credentials and verifying permissions and model access (Stated). If updating credentials doesn't resolve the issue, the page says to check whether the IAM permissions are correctly assigned to the user and whether the desired model is enabled (Stated). If the 403 error indicates that the user does not have access to the specified model ID within Bedrock, the guidance prompts the user to enable the model in the Amazon Bedrock console for their account and region (Stated).A 401 error from Bedrock also falls under the
AWS authentication failed message (Stated). The page notes that Bedrock does not return a 401 error for expired tokens, and therefore, a 401 error often originates from other sources, such as internal proxies (Stated). The page names Bedrock's Mantle endpoint separately, so this article reads this 403 explanation as applying to Bedrock without Mantle (Inference).When
awsAuthRefresh is set, Claude Code runs that command when it detects that the AWS credentials have expired, and retries the request with the refreshed credentials (Stated). Before executing the command, it verifies whether the credentials have truly expired using STS's GetCallerIdentity and skips the command if they still work (Stated). Without the setting, you refresh your SSO sign-in, access keys, API key, or proxy token yourself (Stated).The names and meanings of exceptions within Bedrock's API are documented in the Amazon Bedrock Errors and Exceptions Reference. This article focuses solely on the strings displayed within Claude Code's interface.
5.3 Claude Platform on AWS, Mantle, and the 401
AWS credentials expired or invalid appears on a 401 from Claude Platform on AWS or from Bedrock's Mantle endpoint (Stated). Both report an expired credential as a 401 (Stated). So for the same expired AWS credential, Bedrock without Mantle will display AWS authentication failed, while Mantle endpoints and the Claude Platform on AWS will display AWS credentials expired or invalid (Inference).If you have configured
awsAuthRefresh, you should run the command specified in the message (for example, aws sso login --profile myprofile) in another terminal (Stated). In an interactive session, choosing 3rd-party platform in /login and then Claude Platform on AWS · refresh credentials allows you to run the same command without restarting Claude Code (Stated). If the error repeats after a successful refresh, run aws sts get-caller-identity in the same shell and profile to confirm the identity is valid outside Claude Code (Stated).The specific differences between the Claude Platform on AWS and Bedrock are detailed in Claude Platform on AWS or Amazon Bedrock.
5.4 Two Google Cloud Offerings
Google Cloud's Agent Platform (formerly Vertex AI) returns a 401 error for expired credentials, displaying the messageGoogle Cloud credentials expired or invalid (Stated). A 403 error is used to indicate permission denial, displaying the message Google Cloud authentication failed (Stated). Splitting expiry and denial into different statuses is where it differs from Bedrock without Mantle in Section 5.2 (Inference).Claude Models on Google Cloud (Anthropic managed), configured with the
CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD setting, is a separate offering (Stated). The Error reference page says to follow the steps on its dedicated page for this offering (Stated). The troubleshooting section on that dedicated page also includes sections with the same names: Google Cloud credentials expired or invalid and Google Cloud authentication failed (Stated). For the first, it says to repeat the first setup step; for the second, if that does not clear the error, it says to check the project, the workspace ID, the IAM role, and that the service is enabled (Stated).5.5 Microsoft Foundry
Foundry showsMicrosoft Foundry authentication failed for both a 401 and a 403 (Stated). Either the Azure credential was rejected, or the identity behind it has no access to the Foundry resource (Stated). /login cannot mint Azure credentials (Stated).Fix it in one of these ways: rotate
ANTHROPIC_FOUNDRY_API_KEY, mint a new ANTHROPIC_FOUNDRY_AUTH_TOKEN, or sign in again with Microsoft Entra credentials through az login (Stated).5.6 Two Types of Gateway
There are two types of gateway, each producing different messages (Stated).- LLM gateway: You point
ANTHROPIC_BASE_URLat your organization's gateway. When you receive anAPI Error: 401 Invalid authentication credentials, the text after401comes from your gateway, not Anthropic, and/logindoes not change it (Stated). Correct the credentials required by the gateway (Stated). If anapiKeyHelperscript supplies the credential, Claude Code re-runs the script on a 401 or 403 and retries (Section 2.2). - Claude apps gateway: Your organization runs Anthropic's gateway itself, and you sign in through
/login. When the saved gateway session expires, you will see the messageCloud gateway session expired — run /login to reconnect.(Stated). A 403 showsGateway refused the request, and because signing in again does not change a refusal, the message points you to the gateway administrator (Stated).
Typical LLM gateway errors are collected in the Troubleshoot gateway errors table on the official Connect Claude Code to an LLM gateway page (Stated). How to run Claude apps gateway on AWS is left to Running Claude Apps Gateway on AWS.
5.7 What the Providers Have in Common
The entries for Bedrock, Claude Platform on AWS, Google Cloud, and Foundry say that if the hint says credentials are managed by this environment, the app that launched Claude Code owns the credential and the other steps do not apply (Stated). In that case, try again or contact your administrator (Stated).Could not load AWS or Google Cloud credentials indicates that Claude Code could not read the AWS credential provider chain or Google application default credentials on your machine, so no request reached the provider (Stated). As Section 2.2 describes, Claude Code tries up to two times before reporting it (Stated). If the AWS default chain does not return credentials within 60 seconds, the same message carries AWS default-chain credential resolve timed out (Stated).Before v2.1.273, a 401 or 403 from Google Cloud or Foundry, and a 403 from Claude apps gateway, appeared as the generic
Please run /login or Failed to authenticate (Stated). Before v2.1.273, AWS credentials expired or invalid and AWS authentication failed also appeared only when awsAuthRefresh was set (Stated). If you see a generic message, check the version first (Inference).6. Differences by Surface and Remote Control
This chapter covers how the same failure looks different depending on the surface, and outlines the conditions for using Remote Control.6.1 What the Page Says It Covers
The page says that, except for Wrapper and IDE errors, its errors and recovery commands apply to the CLI, Desktop, and cloud sessions (Stated). This is because all three wrap the same Claude Code CLI (Stated). Wrapper and IDE errors come from the program that launched Claude Code, not from Claude Code itself (Stated).Except for Wrapper and IDE errors, which the launching program prints rather than Claude Code itself, these errors and recovery commands apply across the CLI, the Desktop app, and cloud sessions, since all three wrap the same Claude Code CLI.
That sentence does not name VS Code (Stated). However, the page lists several messages that appear only in the VS Code extension in its Find your error table, and gives the fix for some of them in the table (Stated). This article reads it as: in VS Code, look up the same sections, and check VS Code-only messages in the Find your error table (Inference). For other problems specific to one surface, the page says to see the troubleshooting section of that surface's page (Stated).
6.2 Desktop Wording
In sessions that the Desktop app runs (such as Code tabs or Cowork), some messages are worded differently from the CLI (Stated). Searching the page, this article found the following seven entries that describe such a difference. Entries that list separate Desktop-specific messages, such as the Cowork MCP server credential messages, are not counted.| Entry | Key points in the CLI's wording | Key points in the Desktop's wording |
|---|---|---|
| Not logged in | Not logged in · Please run /login | Authentication required · Sign in again to continue. Sign in again from the app |
| Your organization has disabled API key authentication | Points to /login or to removing ANTHROPIC_API_KEY or apiKeyHelper | Sign in again with your claude.ai account. Sign in again from the app |
| Repeated 529 Overloaded errors | Points to switching with /model | Opus is experiencing high load. Switch to Sonnet. Switch with the app's model picker |
| Usage credits required for 1M context | Points to /usage-credits or /model | Names no commands. Points to the claude.ai usage settings page and similar |
| Couldn't confirm model with the API | Ends with Try again, or run /model to see available models. | Ends with Try again. |
| Claude Opus is not available with the Claude Pro plan | Provides instructions using /logout and /login. | States sign out and sign in again. |
| Effort isn't available with thinking turned off | Provides instructions using /effort high or refers to thinking settings. | States you can lower effort to High. |
If you see
Authentication required · Sign in again to continue on the Desktop, look up the page's Not logged in entry (Inference).Wrapper and IDE errors also include
For security, Claude Code needs a recent sign-in., which the Desktop app shows (Stated). It appears when a local, WSL, or SSH session in the Code tab needs a new saved sign-in and you have not signed in recently (Stated).6.3 Cloud Session
The Error reference page has entries specific to cloud sessions (Stated). For example, errors such as403 or ENOTFOUND that occur during a cloud session or a scheduled cloud task can mean that the requested host is not on the cloud environment's allowlist (Stated). This can be verified by checking the x-deny-reason: host_not_allowed header in the response (Stated). If the server rejects the Claude login sent by the machine with a 401 error when creating a cloud session, the message Claude login not accepted · Run /login, then try again will appear (Stated).6.4 VS Code and Agent SDK: Wrapper and IDE Errors
The six entries of Wrapper and IDE errors are failures of Claude Code launched by the VS Code extension, an Agent SDK app, or the Desktop app (Stated).Subprocess initialization did not complete within 60000ms: This indicates that the Claude Code instance launched by either the VS Code extension or the Agent SDK application failed to complete its initialization in time (Stated). In a VS Code conversation, the wording starts withClaude Code did not finish starting: it did not answer in time.(Stated). A variety of factors could be the cause, including slow plugins, MCP servers, hooks, disk issues, or network problems (Stated).Claude Code process exited with code N: The exit code alone does not provide sufficient information to determine the cause of the failure. The actual error message can be found in the output of the process itself (Stated).Could not locate the Claude CLI on PATH: This error occurs in the integrated terminal within VS Code on Windows when the shell is PowerShell and the extension can't findclaudeon PATH (Stated).
In the VS Code extension version 2.1.334, the name of the link below the error message was changed from View output logs to Show logs (Stated). The page picked up this change between fetches on the check date. Older versions of the extension still display the link as View output logs (Stated).
6.5 JetBrains IDEs
The word JetBrains does not appear anywhere on the Error reference page (Stated: searched the page). The JetBrains IDEs page has its own three troubleshooting sections: plugin not working, IDE not detected, and command not found (Stated). Whether errors in JetBrains are the same as those on the Error reference page is not stated on the pages (Not stated).6.6 Remote Control
Remote Control is a feature that allows you to continue your Claude Code session from your smartphone or browser (Stated). The conditions for using this feature include the following (Stated):- You must be signed in with a claude.ai account subscription. It is not supported with API keys. For Team and Enterprise plans, the Owner must ensure that Remote Control is enabled in the management settings.
- You must be directly connected to the Anthropic API. It is not supported when using Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or when using
ANTHROPIC_BASE_URLpointing to anything other thanapi.anthropic.com, or when using Claude apps gateway for sign-in. - Remote Control is unavailable if
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICorCLAUDE_CODE_DISABLE_FEATURE_FLAGSis set.
The Feature availability page lists Remote Control among the features that require a claude.ai subscription, and says it is not available on Claude Platform on AWS or Claude Models on Google Cloud (Anthropic managed) either (Stated).
If the conditions are not met, the following message will appear (Stated):
Remote Control is only available when using Claude via api.anthropic.com. CLAUDE_CODE_USE_BEDROCK is set, so this session is using Amazon Bedrock — unset it (or run in a shell without it) to use Remote Control.
The second sentence names what routed the session away from the Anthropic API (Stated). It is one of the following: a
CLAUDE_CODE_USE_* provider variable, ANTHROPIC_BASE_URL, ANTHROPIC_UNIX_SOCKET, or a sign-in using Claude apps gateway (Stated). Before v2.1.219, the message was the first sentence alone (Stated). If the message appears although the variable is not set in your shell, check the env key in your settings files (Stated).Authentication errors has five entries about Remote Control (Stated).
| Entry | What happened |
|---|---|
| Remote Control requires the Anthropic API | The session is not directly connected to the Anthropic API. |
| Remote Control couldn't refresh your login | claude.ai stopped accepting the login, so the short-lived credentials that keep the connection alive cannot be renewed |
| Remote Control could not renew this computer's connection | In the terminal running claude remote-control, the server cannot renew the connection's credential |
| Remote Control stopped because the signed-in account changed | You signed in to a different claude.ai account or organization on this machine. |
| Remote Control stopped because the app running the session signed out or switched accounts | The Desktop or IDE running the session signed out or switched accounts. |
Additionally, there are entries under Network and connection errors such as
Couldn't reconnect to your Remote Control session, and there are entries under Command-line errors related to starting Remote Control (Stated). The Remote Control page itself has 19 sections dedicated to troubleshooting (Stated). If Remote Control stops, it's quickest to consult the troubleshooting section on the Remote Control page (Inference).7. When a Message Is Not in the Reference
This chapter describes where to look when a message is not on the Error reference page.7.1 Dividing Responsibilities Across Four Pages
The pages for Claude Code's troubleshooting are divided by function (Stated).| Page | Content |
|---|---|
| Error reference | Errors shown on screen while Claude Code is running |
| Troubleshoot installation and login | Issues such as command not found, installation failures, PATH, permissions, TLS during installation, and login/authentication problems. |
| Troubleshooting | Problems encountered after Claude Code has started, such as excessive CPU or memory usage, freezing, repeated automatic compacting, and search issues. |
| Debug your configuration | Settings not taking effect, hooks not firing, MCP servers not loading |
The table at the beginning of the Troubleshooting page guides users to the correct page based on their symptoms (Stated). For example,
API Error: 5xx, 529 Overloaded, and 429 errors, as well as request validation errors, go to the Error reference page. Login loops and provider credentials go to Troubleshoot installation and login (Stated). For the same authentication error, look at Troubleshoot installation and login if you got stuck in the sign-in steps, and at Error reference if it appeared while Claude Code was running (Inference).The meaning of specific HTTP status codes can be found on the Claude API errors page of the Claude Platform docs (Stated). The Error reference page also directs users to that same page for the definitive definitions of raw HTTP status codes (Stated). On this site, Anthropic Claude API Errors Reference covers them.
7.2 /doctor and claude doctor
The page says claude doctor from your shell runs a read-only diagnostic of your installation, while /doctor inside Claude Code finds and fixes setup problems (Stated). /doctor also flags oversized memory files and unused extensions (Stated).7.3 When Responses Are Weak with No Error
The page's Responses seem lower quality than usual section says that when responses seem weak with no error shown, the cause is usually the conversation state rather than the model itself (Stated). It suggests checking/model to verify the model, /effort for the reasoning level, and /context for how full the context window is (Stated). Claude Code does not silently change model versions, but it can switch to a fallback model (Stated). The conditions for that switch are left to Which Model a Claude Code Session Runs.7.4 Reporting Procedures
For an error not on the page, or one the listed fix does not clear, report it by running/feedback inside Claude Code (Stated). It sends the transcript and your description to Anthropic, and it can also open a draft GitHub issue (Stated). If you are using Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry, or another provider, or when no Anthropic credentials are configured, /feedback saves a local archive instead (Stated). You can send that file to your Anthropic account representative (Stated). The page also lists checking status.claude.com for incidents and searching existing issues on GitHub (Stated).8. Frequently Asked Questions about Claude Code Errors
This chapter restates the body as questions readers are likely to have, presenting the information in a question-and-answer format. The section numbers following each answer indicate where you can find more detailed explanations.Q1. If there is a maximum of 10 retry attempts, will the message only appear after 10 failures?
That is not always the case. The number 10 is the default value forCLAUDE_CODE_MAX_RETRIES, and the number of retries varies by failure type (Section 2.1). A server error after thinking but before any text or tool call is retried up to two times, a stalled stream once, and with an API key on an Opus model, retrying can stop at the third 529. A TLS certificate failure appears on the first attempt (Section 2.3).Q2. If a 529 appears, have I reached my usage limit?
No, you have not. The page states that 529 indicates a general capacity shortage, not a usage limit, and that it does not consume any quota (Section 4.1). If you've reached your usage limit, a different message, such asYou've hit your session limit, would appear (Section 4.2).Q3. Bedrock shows AWS authentication failed. Is the credential expired, or is it a permission problem?
Claude Code cannot tell which. This is because Bedrock (without Mantle, as this article reads it) returns the same 403 error code for both expired credentials and permission denials (Section 5.2). First, update your credentials. If the error persists, verify your IAM permissions and the model's access settings.Q4. I was told that Remote Control is unavailable. Can I use it while staying on Bedrock?
No. Remote Control only works with sessions that are signed in to a claude.ai subscription and directly connected to the Anthropic API (Section 6.6). It cannot be used with Bedrock, Claude Platform on AWS, Google Cloud, Foundry, or through a gateway.Q5. Desktop words a message differently from the CLI. Should I look up a different section?
Look up the same section. The page says that, except for Wrapper and IDE errors, the same sections apply to the CLI, Desktop, and cloud sessions (Section 6.1). By this article's count, the wording differences are described in seven entries (Section 6.2).Q6. CI jobs are failing due to temporary overload. How should this be configured?
If you want the job to continue running even if it experiences capacity shortages, setCLAUDE_CODE_RETRY_WATCHDOG=1 and define the maximum wait time using CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS (Sections 2.5 and 2.6). On a spend limit, exhausted usage credits, or x-should-retry: false, retrying stops even with the watchdog set.Q7. The response was cut off. If the request is sent again, will the tool run twice?
Claude Code does not re-send the request when the response already has a completed block or tool call (Section 2.3). It keeps the completed part, runs the tool calls Claude finished, and continues. If you seeThe response above may be incomplete in an interactive session, reply continue (Section 4.1).Q8. Can errors from the JetBrains plugin be looked up in this reference too?
The Error reference page does not mention JetBrains (Section 6.5). See the Troubleshooting section of the JetBrains IDEs page.9. Summary
The table lists the main points of this article, with what the pages say and the label for each.| What to Check | What the Pages Say | Label |
|---|---|---|
| Number of sections | 13 (309 entries in total) | Stated (entry count by this article) |
| Number of retries | CLAUDE_CODE_MAX_RETRIES defaults to 10, capped at 15. Some failure types get only one or two | Stated |
| Failure partway through a response | After a completed block, keeps that part and continues; does not re-send | Stated |
| TLS certificate failure | Occurs on the first attempt and does not retry. | Stated |
| 529 | Indicates insufficient overall capacity; not a limit on usage. | Stated |
| Bedrock 403 | Claude Code cannot tell expired credentials from a denial. | Stated |
| Surfaces | Shared by the CLI, Desktop, and cloud sessions, except Wrapper and IDE errors. Desktop wording differences: seven entries by this article's count | Stated (entry count by this article) |
| Remote Control | Only sessions signed in with a claude.ai subscription and connected directly to the Anthropic API. | Stated |
| Whose side | A tendency per section; differs by entry | Inference |
- Find the section from the stable leading text of the message, and jump to the entry with the page's Find your error table.
- Messages generated after a retry are unlikely to change if you repeat the same operation right away. Wait or adjust the settings.
- Authentication messages differ in wording and HTTP status by provider. First, confirm which provider generated the message.
- In CI environments, use
CLAUDE_CODE_RETRY_WATCHDOGif you want to allow the process to continue running even if it has to wait out capacity shortages; useCLAUDE_CODE_MAX_RETRIESif you want it to fail quickly. - The page changed twice on 2026-12-02 alone. The counts and version boundaries in this article are based on that day's page and CHANGELOG 2.1.334. Reread the page at least once a month.
10. References
- Error reference - Claude Code Docs
- Troubleshooting - Claude Code Docs
- Troubleshoot installation and login - Claude Code Docs
- Debug your configuration - Claude Code Docs
- Continue local sessions from any device with Remote Control - Claude Code Docs
- Environment variables - Claude Code Docs
- Enterprise network configuration - Claude Code Docs
- Feature availability - Claude Code Docs
- Claude Code on Amazon Bedrock - Claude Code Docs
- Claude Code on Claude Platform on AWS - Claude Code Docs
- Claude Code on Google Cloud's Agent Platform - Claude Code Docs
- Claude Code with Claude Models on Google Cloud (Anthropic managed) - Claude Code Docs
- Claude Code on Microsoft Foundry - Claude Code Docs
- Other LLM gateways - Claude Code Docs
- Connect Claude Code to an LLM gateway - Claude Code Docs
- Use Claude Code in VS Code - Claude Code Docs
- JetBrains IDEs - Claude Code Docs
- Claude Code changelog - Claude Code Docs
- CHANGELOG.md - anthropics/claude-code - GitHub
- Claude API errors - Claude Platform Docs
- Anthropic Claude API Errors Reference - HTTP Status Codes, Error Types, Causes, and Official Solutions
- Practical Guide to Deploying Claude Code and Claude Desktop Behind a Corporate Proxy - Domains, MSIX, NTLM/Kerberos, and VPN Coexistence
- Which Model a Claude Code Session Runs - Model Aliases by Provider, availableModels, and Two Kinds of Fallback
- Claude Code /goal - What the Evaluator Sees, When a Goal Clears, and How It Differs from a Stop Hook
- Where Claude Code Auto Mode Gets Its Verdict - Server Review, the Local Classifier, and the Denial When No Verdict Arrives
- Claude Code on Pay-As-You-Go API Billing - Anthropic API, Amazon Bedrock, and Google Cloud Vertex AI
- Claude Platform on AWS or Amazon Bedrock - Who Operates It, What Differs, and What a Move Breaks
- Amazon Bedrock Errors and Exceptions Reference - Runtime Exceptions, Causes, and Official Solutions
- Running Claude Apps Gateway on AWS - What the Gateway Holds and Enforces, What Stays on Developer Machines, and Where the Worked Example Stops
- Claude Code Version History and Timeline - Release Channels, Changed Defaults, and Where Each Version Date Comes From
References:
Tech Blog with curated related content
Written by Hidekazu Konishi