Table of contents
- 1. First, check for an exact match in the official catalog
- 2. Which of the four layers wrote the error message?
- 3. When you see “content filter,” whose filter is it?
- 4. Streaming response ended before any complete data was received
- 5. Could not locate the Claude CLI on PATH
- 6. Messages we couldn't trace, and four steps to investigate them yourself
- 7. Quick reference: where to go based on the message
- 8. What we know and what we don't
- FAQ
When Claude stops you in your tracks, the first thing you might do is search for the exact message that appeared. But sometimes your search turns up almost nothing. Here are a few examples.
The response was blocked by the provider's content filter
Streaming response ended before any complete data was received
Could not locate the Claude CLI on PATH
Connection to Claude's response was lost. Claude may still be working
These messages have one thing in common: you saw them while using Claude, but they don't seem to appear in Claude's official documentation, no matter how much you search. There's a clear reason for that: the program that wrote the message on your screen may not be the one you think it is.
There is more than one way to call Claude. You might use claude in a terminal, an IDE extension, another agent such as OpenCode, or Claude through GitHub Copilot. Each of these decides for itself how to describe a failure. The same event can be worded differently by each layer that reports it.
This article doesn't explain the causes of each error from scratch. Instead, it's a starting point for identifying who wrote the message and directing you to the right troubleshooting article. We leave the details to existing articles and focus here only on tracing the message's source. We distinguish between what we could and could not verify using primary sources.
Claude Code has an official catalog of the messages it displays. Checking for an exact match helps narrow down which layer wrote the message. Do this before guessing at the cause.
Third-party tools may name a cause, but public Issues document real examples where that attribution was incorrect. If you trust the message and fix what it names, you may end up fixing the wrong thing.
When we checked the five messages listed above, two appeared in Claude Code's official error reference. You can't tell which layer wrote a message just by how it sounds.
1. First, check for an exact match in the official catalog
Before trying to guess the cause, do this first: check whether the message is part of Claude Code's own vocabulary.
Claude Code has an official error reference that comprehensively lists the messages Claude Code displays. Authentication, rate limits, context limits, network issues, streaming, MCP, plugins—the reference lists the exact strings that appear on screen.
That means you can determine whether the string you saw appears there by checking for a match, not by guessing.
It's either from Claude Code itself or a message the official reference classifies as coming from the program that launched it. You can use the official explanation and recommended steps as written. Two of the five messages at the beginning fell into this category.
Another program may have rephrased the message. The rewording may add a named cause, so don't take that attribution at face value.
The message is part of the vocabulary of the tool you're using. Look for it in that tool's repository and Issues, not in Anthropic's documentation.
2. Which of the four layers wrote the error message?
When you break down the ways to use Claude, there are four places that might write a message when something goes wrong. Which layer wrote it determines how to interpret it and where to look for a fix.
This includes the Anthropic API, Amazon Bedrock, Google Vertex AI, and GitHub Copilot's gateway. The HTTP status and JSON error.message often appear on screen as-is.
Example: Output blocked by content filtering policy
These are notes the CLI adds based on its own assessment. A key sign of this layer is that the message appears verbatim in the official error reference, where its meaning and recovery steps are documented.
Example: Streaming response ended before any complete data was received
These messages come from the program that tried and failed to launch Claude Code. The official reference has a separate section called “Wrapper and IDE errors” and explains that these messages are printed by the launching program, not by Claude Code itself.
Example: Could not locate the Claude CLI on PATH
These are other agents that call Claude as a model. Each project writes its own messages, which don't appear in the official catalog. They often name a cause, but that attribution may be wrong.
Example: The response was blocked by the provider's content filter
Of these four layers, Layer ④ is the easiest to misread. Layers ①–③ tend to describe what happened, while Layer ④ messages often state why it happened. But that conclusion is only an estimate made by the tool. The next chapter looks at a real example.
3. When you see “content filter,” whose filter is it?
Two of the five messages at the beginning say that a content filter blocked the response. This is particularly easy to misinterpret. Just because you're using Claude doesn't mean Anthropic's filter is what stopped the response.
3-1. The model returned no content because the response was blocked by content filtering
- The only primary source where we could verify this exact string is Issue #3348 in GitHub's own github/copilot-cli repository
- The title is “Repeated 'The model returned no content because the response was blocked by content filtering' on legitimate technical reasoning turns,” which includes the exact string
- The author withdrew the body, and there is no technical response from a maintainer (the issue is closed as not planned)
- We couldn't find this exact string in GitHub's public documentation
So this article doesn't claim anything beyond “this message was reported in GitHub Copilot CLI”.
There is, however, ✅ one thing we can say for certain. GitHub's official documentation, “Hosting of models for GitHub Copilot,” explicitly says the following about using Claude.
“Even when using Claude, input prompts and output completions continue to pass through GitHub Copilot's content filters—filters for matches with public code, where applicable, and filters for harmful or offensive content.”
- When you use Claude through Copilot, GitHub also has filters that can stop output
- The same page also says that Claude models available through Copilot are hosted by “Amazon Web Services, Anthropic PBC, and Google Cloud Platform”—so they aren't necessarily accessed directly through Anthropic's
api.anthropic.com
Output blocked by content filtering policy appears directly in the Anthropic API or Claude Code, the main cause is an output filter that blocks reproductions of copyrighted works. The recommended approach is to avoid asking for verbatim copies (→ Causes and fixes for “Output blocked by content filtering policy”). But when you use Copilot, GitHub says it also checks for matches with public code. If you're working on output similar to existing code, that filter may be what's stopping you. Even when the message says “content filtering,” the filters may not be looking for the same thing.
One test is enough to narrow it down. Run the same prompt with claude in a terminal, using a route that connects directly to Anthropic. If it works there but gets stopped only in Copilot CLI, Anthropic's filter isn't what stopped it. If both stop it, the model provider is more likely to be responsible.
3-2. The response was blocked by the provider's content filter
✅ Source (confirmed): This message comes from OpenCode, an open-source coding agent. The exact wording was reported in Issue #35736 in the anomalyco/opencode repository.
This Issue is the clearest example of the point this article is trying to make. Its title can be translated as follows: “Vertex provider errors (404, socket disconnects, stop_reason:refusal) all surface as the same ‘blocked by content filter’ message.”
The model isn't available in the configured region. The Issue's example is claude-opus-4-8@default. This is just a configuration mistake and has nothing to do with filters.
The connection to the Vertex API was lost during a long session. This is a network event; the output wasn't even evaluated.
The response returns HTTP 200 with stop_reason: refusal and a safety category (the Issue's example is cyber). Only this case matches the message.
Of the three cases, only one is accurately described by the message. Yet the same text appears on screen for all of them. That's why you shouldn't take Layer ④ messages at face value: if you read “blocked by a filter” and rewrite your prompt to be more neutral, a 404 will never be fixed. You need to correct the model ID and region settings.
The same repository also had Issue #35643, “Charges are billed for generated output even when the content filter blocks it.”
- As of September 2026, both were closed as “not planned,” with no record of a fix (#35736 on September 15 and #35643 on September 22)
- A bot that automatically closes Issues with no activity for 60 days closed them; neither received a response from a maintainer
- You can't count on a fix from OpenCode, so it's more reliable to troubleshoot the problem yourself in the order below
- Check that the configured model ID and region are a valid combination
- See whether the issue happens with the same prompt every time or only intermittently (if intermittent, suspect the connection)
- If you can get the raw response, check
stop_reason
Only treat it as a content issue if step 3 returns refusal.
<model>'s safeguards flagged this message. The troubleshooting steps are different, too (→ What “safeguards flagged this message” means and how to fix it).
4. Streaming response ended before any complete data was received—this message came from Claude Code itself
Next, we'll look at two messages that seem like they might come from third-party tools but are actually part of Claude Code's official vocabulary.
✅ Confirmed: This string appears as an entry in the official Claude Code error reference. The official explanation is different from what many people might expect.
“The API returned response headers, but the response body didn't contain a Claude API message.”
In other words, it doesn't mean “the response started arriving, then got cut off.” It means “nothing came in the response body.” The words Streaming and ended can make it sound like the connection dropped while the response was streaming, but the official definition describes a state where only the headers were returned and the body was empty. If you get this wrong, you could spend ages trying different fixes for a dropped connection.
- Send it again—the original message is still in the conversation, so you don't need to paste a long prompt again. Just enter
try again. - If it happens every time, suspect your network, proxy, or provider gateway—the official reference points you to the “Unable to connect to API” entry.
The related entries listed nearby support this interpretation. The official reference also includes the following entries.
| Entry in the official reference | Meaning |
|---|---|
API returned an empty or malformed response |
The headers indicate success, but the body isn't a valid Claude API message |
Bedrock streaming response has content-type "..."; expected "application/vnd.amazon.eventstream" |
This entry names a mismatch in the type of content returned by the gateway |
These entries all belong to the same category: “A 200 response was returned, but the content wasn't a Claude response.”
Streaming response ended before any complete data was receivedAPI returned an empty or malformed response
Suspect the route: a corporate proxy, TLS termination, an API gateway, or an intermediary in front of Bedrock or Vertex. → See the article on network, proxy, and TLS certificate errors.
Connection lost mid-responseThe response stopped arriving
Here, the output already displayed remains on screen, and you can resume from where it stopped with continue. → See the article on Connection lost mid-response.
5. Could not locate the Claude CLI on PATH—a message the official reference attributes to the launching program
✅ Confirmed: This string also appears in the official error reference. But where it appears matters: it's in a separate section called “Wrapper and IDE errors.” The official reference explains that these errors are printed by the program that launched Claude Code, not by Claude Code itself.
The official definition is: “The launching program couldn't find the claude command on the system PATH.” It recommends two fixes.
| Fix | Details |
|---|---|
| Reinstall | The installer adds claude to PATH |
| Add the installation directory to PATH | On macOS/Linux, typically ~/.local/bin or /usr/local/binOn Windows, typically %APPDATA%\Anthropic\Claude\bin or C:\Program Files\Anthropic\Claude\bin |
However, the message that actually appears on screen may be longer than the heading in the official catalog. Issue #80087 in anthropics/claude-code records the exact message displayed by the VS Code extension.
The extension added the explanation in the second half. That's why a search may not find the whole message. Search for just the first sentence. This applies to Layer ③ messages generally: the launching program may append its own context to the official heading.
- Environment: The reporter says they were using Windows 11 and that
claudeworked in the terminal, but only the extension failed - Versions: It worked in v2.1.212 and the issue reproduced in v2.1.214 and v2.1.217, leading the reporter to suspect a regression introduced in v2.1.214
- Suspected cause: How the output from Windows
where.exeis handled (in environments where the username contains non-ASCII characters)—this is the reporter's theory, not a confirmed cause - Status: A bot automatically closed the Issue as “not planned” on September 29, 2026; no fix was announced
- Workaround: Pinning the extension to v2.1.212 was suggested
This one-line check is enough to narrow it down. Run claude --version in a terminal. If it displays a version but the extension still fails, the problem is the PATH seen by the launching program, not the CLI itself.
If you launch an editor from its icon, the PATH it receives may differ from the one set up by your login shell. If you haven't installed the CLI at all, see the article on command not found errors.
6. Messages we couldn't trace, and four steps to investigate them yourself
We 🔴 couldn't trace the source of one of the five messages at the beginning: Connection to Claude's response was lost. Claude may still be working. We won't name a source in this article. Here's what we checked and what we found.
| What we checked | Result |
|---|---|
| Every entry in the official Claude Code error reference (checked from beginning to end) | The string wasn't there |
| The full official Remote Control documentation (the feature for continuing a local session from a phone or browser) | It wasn't there either |
Two official messages with similar wording: Connection lost mid-response and Couldn't reconnect to your Remote Control session |
Neither string was an exact match |
So the message must belong to either Layer ③ or Layer ④, but we couldn't verify which tool wrote it.
The wording “Claude may still be working” suggests that whoever wrote the message isn't the one running Claude—they may be observing it from another process or machine. But this is 🟡 a guess based on the wording, not something we could verify.
Here are steps you can use to investigate a message yourself. They apply to all the cases covered in the previous chapters.
Did it appear in the stream of Claude's response, or outside it, in a frame, notification, or panel? If it appeared outside the response, it was written by Layer ③ or Layer ④.
claudeRun the same task with claude in a terminal. If the issue doesn't reproduce, the message came from that tool. If it does, look at Layer ① or Layer ②.
Use your browser's search function on the official error reference. Search only for the first sentence—the launching program may have appended its own text to the rest (Chapter 5).
If the message isn't in the official reference, don't look in Anthropic's documentation. Search for the string in the Issues in the repository of the tool you're using. We traced the messages in this article the same way.
7. Quick reference: where to go based on the message
Here's a one-page summary of what we've covered. The “Who wrote it?” column tells you how much you can trust the message.
| Message on screen | Who wrote it | What's actually happening | Where to go |
|---|---|---|---|
The model returned no content because the response was blocked by content filtering |
🟡 Layer ④ Message reported in GitHub Copilot CLI |
Output is being stopped by a filter. However, it could be GitHub's filter (which also checks for matches with public code) | Article on output filters |
The response was blocked by the provider's content filter |
✅ Layer ④ OpenCode |
There are three possibilities: a 404 for the model ID, a dropped connection, or a genuine refusal. Only the third matches the message. | Troubleshooting in Chapter 3 |
Streaming response ended before any complete data was received |
✅ Layer ② Claude Code itself (official) |
The headers arrived, but the body was empty. It wasn't cut off mid-response. Suspect the route (proxy or gateway). | Article on network and proxy issues |
Could not locate the Claude CLI on PATH |
✅ Layer ③ The launching program (as stated in the official reference) |
claude isn't on the PATH seen by the launching program. The CLI itself is often fine. |
Article on command not found |
Connection to Claude's response was lost. Claude may still be working |
🔴 Couldn't identify the source Not in the official catalog |
Unknown. The similar official message is Connection lost mid-response. |
Four steps in Chapter 6 / Article on the similar official message |
Read the table across, and you'll see that only the two Layer ④ rows are uncertain in the “What's actually happening” column. Layers ② and ③ have official definitions, so there's no ambiguity. That's the difference in how much you can trust the messages.
8. What we know and what we don't
Streaming response ended…andCould not locate the Claude CLI on PATHappear as entries in Claude Code's official error reference- The official reference puts the second message under “Wrapper and IDE errors” and explains that it is printed by the launching program
- The first message means “The headers were returned, but the body didn't contain a Claude API message”—it wasn't cut off mid-response
- OpenCode Issue #35736 reports that a 404, a dropped connection, and a genuine refusal all produce the same message
- GitHub's official documentation explicitly states that, even when using Claude, inputs and outputs pass through GitHub Copilot's content filters
- The source of
The model returned no content because…. The only exact match we could verify was in the title of github/copilot-cli Issue #3348, whose body was withdrawn. - The cause of the VS Code extension regression reported in Issue #80087 (how the output of
where.exeis handled) is the reporter's theory. - The Issue doesn't say which part of OpenCode's code produces this message.
- The idea that “Claude may still be working” is phrased from the perspective of someone observing another process is an inference based on the wording.
- Which tool displays
Connection to Claude's response was lost…. It wasn't in the official error reference or Remote Control documentation. - GitHub's technical explanation for the message in GitHub Copilot CLI (Issue #3348 is closed as not planned and has no response from a maintainer).
- A fix for the two OpenCode Issues (in September 2026, both were closed as not planned by an inactivity bot, with no record of a fix).
To sum up: you can't tell which layer wrote a message by how it looks. All five messages at the beginning seemed like they came from third-party tools, but two were official, two came from third parties, and one was unknown. So the first step isn't to guess the cause; it's to check the official catalog. It takes a minute and tells you where to look next.
FAQ
Q1. I'm using Claude, but I can't find the message in Anthropic's documentation.
Anthropic may not have written the message. Tools that call Claude as a model—such as IDE extensions, other coding agents, or tools that use Claude through Copilot—each decide for themselves how to describe a failure. First, check for an exact match in the official error reference. If you don't find one, search for the string in the Issues in the repository of the tool you're using.
Q2. If I see “content filter,” does that mean Anthropic's filter blocked it?
Not necessarily. GitHub's official documentation explicitly states that input prompts and output completions pass through GitHub Copilot's content filters, even when using Claude. And OpenCode Issue #35736 reports cases where a 404 or socket disconnect—neither of which is related to a filter—appears as the same “content filter” message. Run the same prompt with claude in a terminal and see whether the issue reproduces.
Q3. Does Streaming response ended before any complete data was received mean the connection was dropped?
No. The official error reference defines it as “The API returned response headers, but the body didn't contain a Claude API message.” It means nothing came back in the response body, not that the response started arriving and then got cut off. Try sending it again first (entering try again is enough). If it happens every time, suspect the route, such as a proxy or gateway.
Q4. claude works in the terminal, but the IDE extension says “Could not locate the Claude CLI on PATH.”
The problem is with the launching program, not the CLI. The official reference classifies this message under “Wrapper and IDE errors”—errors printed by the program that launched Claude Code, not Claude Code itself. If you launch the editor from its icon, the PATH it receives may differ from the one set up by your login shell. There are also reports of regressions tied to extension versions, such as Issue #80087.
Q5. Does the error message not show up in search because it's rare?
Often, it's because the message is too long. Layer ③ messages may append the launching program's own explanation to the official heading (Chapter 5 gives an example where the official heading was one sentence but the actual message was four). Search for just the first sentence.
Q6. Should I avoid trusting the cause stated in the message?
It depends on the layer. Messages that exactly match the official catalog (Layers ② and ③) have documented meanings and fixes, so you can follow them as written. The problem is Layer ④. OpenCode Issue #35736 reports that three completely different failures all produce the same “blocked by content filter” message. If the actual problem is a configuration mistake, rewriting your prompt because you trusted the message won't fix it.
Q7. Should I just stop using third-party tools?
There's no need to go that far. The issue here isn't whether a tool is good or bad; it's only where the message comes from when something goes wrong. To narrow down the cause, it's enough to try reproducing the issue once with plain claude. For help choosing a tool, see the comparison of Cursor, Claude Code, GitHub Copilot, and Codex.
Q8. How do I fix Connection to Claude's response was lost. Claude may still be working?
We couldn't identify its source in this article. This string doesn't appear in the official Claude Code error reference or the Remote Control documentation. That means it came from either the launching program or a third-party client, but we couldn't verify which tool, so we won't name one. Follow the four steps in Chapter 6 to identify it in your own environment. If the response itself is cut off mid-stream, the article about Connection lost mid-response, which has similar wording in the official reference, may help.
Related articles
- Causes and fixes for Claude Code's “Output blocked by content filtering policy” error
- Claude Code says “command not found”: installation and PATH causes and fixes
- Claude Code network, proxy, and TLS certificate errors (Unable to connect): causes and fixes
- Causes and fixes for API Error: Connection lost mid-response
- Claude Code loops endlessly on “court” and stops with Response stalled mid-stream: causes and fixes
- Causes and fixes for Claude Code MCP server connection errors
- Common Claude Code errors and fixes
- Comparing Cursor, Claude Code, GitHub Copilot, and Codex
Primary sources
- Claude Code — Error reference (official documentation): Definitions of
Streaming response ended before any complete data was receivedandAPI returned an empty or malformed response; definition and fixes forCould not locate the Claude CLI on PATH; and the classification of “Wrapper and IDE errors” - Claude Code — Remote Control (official documentation): Confirms that
Connection to Claude's response was lostis not listed - anomalyco/opencode Issue #35736: Vertex 404s, socket disconnects, and
stop_reason:refusalall surface as the same “blocked by content filter” message (September 15, 2026; automatically closed as not planned due to inactivity) - anomalyco/opencode Issue #35643: Generated output is billed even when blocked by the content filter (September 22, 2026; automatically closed as not planned due to inactivity)
- GitHub Docs — Hosting of models for GitHub Copilot: States that inputs and outputs pass through GitHub Copilot's content filters when using Claude, and identifies where Claude models are hosted
- github/copilot-cli Issue #3348: Exact wording of
The model returned no content because the response was blocked by content filtering(title only; body withdrawn; closed as not planned) - anthropics/claude-code Issue #80087: Full text of the message displayed by the VS Code extension and behavior differences in v2.1.212, v2.1.214, and v2.1.217 (closed as not planned on September 29, 2026; no fix announced)
- OpenCode official site