Skip to content
Guides

Why returning HTTP 200 on custom 404 pages confuses AI search

6 min read

You ran a query on ChatGPT or Perplexity about your product catalog, and the answer stated that your core software package is discontinued, out of stock, or missing key features. You visited the URL cited in the engine's answer, expecting a deleted page, but saw your site's custom error template displaying "Page Not Found."

You assumed the AI model hallucinated the claim out of thin air. In reality, your web server explicitly told the crawler that the page existed and contained valid text.

This breakdown occurs because modern web applications frequently commit a technical error known as a soft 404: returning an HTTP 200 OK response header while displaying visual text that tells human visitors a page does not exist. Human visitors read the visual headline and navigate away. AI answer crawlers read the HTTP 200 header, treat the document body as factual, and feed error message text into their retrieval context.

How answer crawlers ingest web pages

AI search engines rely on real-time web retrieval to answer user prompts. To understand why a soft 404 corrupts AI responses, you must distinguish between training crawlers and answer crawlers.

Training crawlers gather content to train base language models. In our panel of 54,082 domains, 33,670 returned a readable robots.txt file. Within those readable domains, training crawlers are blocked at high rates: GPTBot is blocked by 5,080 domains, ClaudeBot by 4,603 domains, and Google-Extended by 4,275 domains.

Answer crawlers operate on an entirely different mechanism. When a user asks a question, engines deploy search agents to retrieve live web content. In our panel, PerplexityBot is blocked by 2,147 readable domains, ChatGPT-User by 2,074, OAI-SearchBot by 1,579, Perplexity-User by 1,402, Claude-SearchBot by 1,400, and Claude-User by 1,384. Out of 33,670 readable domains, 2,576 block at least one answer crawler. Data from our census of active Y Combinator companies shows a similar pattern: out of 4,226 active companies, 3,755 had readable robots.txt files, and 253 blocked at least one AI crawler of any type.

When an allowed answer crawler like Perplexity-User or ChatGPT-User requests a URL, it executes an HTTP GET request. The crawler inspects the server's HTTP response status code before processing the text payload:

If the server returns HTTP 404 Not Found or HTTP 410 Gone, the answer crawler immediately drops the URL from its candidate retrieval window. It does not parse the content.

If the server returns HTTP 200 OK, the answer crawler assumes the server delivered valid content. The crawler extracts the document text, breaks it into tokens, and submits those tokens to the model's retrieval context window.

When your server returns HTTP 200 along with a visual message stating "Sorry, this product is no longer available," the answer crawler does not know that text represents a site error. It treats "Sorry, this product is no longer available" as an authoritative product detail. If the URL slug was /products/enterprise-tier, the engine synthesizes an answer informing the user that your enterprise tier has been cancelled.

Single-page applications built on frameworks like React, Vue, or Next.js are the primary source of this issue. By default, many client-side routers send a standard index.html shell with an HTTP 200 status code, relying on browser JavaScript to render the custom "Page Not Found" screen later. Answer crawlers often scrape raw HTML payloads without rendering client-side JavaScript. They read the default template shell, complete with fallback error messaging or boilerplate menu text, as the true content of the requested page.

Inspecting server headers with curl

You cannot diagnose HTTP status codes using a standard web browser interface. Browsers render the final visual state of the document, hiding raw headers behind developer tools.

To see what an answer crawler receives when accessing a missing or archived page, run a request in your command terminal using curl. Inspect the HTTP headers directly by including the -I flag, and pass a custom user-agent string to replicate answer crawler behavior:

curl -I -A "Perplexity-User" https://yourdomain.com/this-page-does-not-exist

Observe the very first line of the output response. A soft 404 configuration returns an output header structured like this:

HTTP/2 200
date: Mon, 10 Aug 2026 14:22:01 GMT
content-type: text/html; charset=UTF-8

If your terminal displays HTTP/2 200 or HTTP/1.1 200 OK for a page that displays error text, your server is issuing soft 404s. The answer crawler ingests every word on that template.

To fix the response, your web server or application router must return an explicit status header for missing pages. A correct response for a non-existent page looks like this:

HTTP/2 404
date: Mon, 10 Aug 2026 14:22:01 GMT
content-type: text/html; charset=UTF-8

If a product page or landing page has been permanently retired without a replacement, configure the server to return HTTP 410 Gone:

HTTP/2 410
date: Mon, 10 Aug 2026 14:22:01 GMT
content-type: text/html; charset=UTF-8

When using server-side frameworks like Next.js, ensure your fallback routing logic uses native error utilities (such as calling the notFound() function in App Router server components) rather than rendering a custom client-side error component inside a standard page layout. For headless content management systems, ensure your API routes and edge workers pass the correct status code to the client before streaming body text.

What fixing soft 404s will and will not do

Fixing soft 404 responses is essential technical hygiene, but you must be precise about what this fix accomplishes.

Fixing soft 404s will prevent answer crawlers from ingesting placeholder text, obsolete price tables, and missing-page notices. It stops engine hallucinations caused by broken URL structure.

Fixing soft 404s will not increase the citation frequency of your valid pages.

Removing a soft 404 simply tells the engine to discard a bad page. It does not give the engine a reason to recommend your remaining valid pages over a competitor's. If your brand currently has a visibility score of 12, plus or minus 4, fixing your soft 404s will eliminate false claims about missing products, but it will not magically raise that score to 40, plus or minus 6.

Do not buy search optimization tools or agency packages that promise elevated AI visibility merely by resolving site health issues or HTTP status codes. Vendors who promise guaranteed citations or higher rankings in AI answers are selling guarantees they cannot deliver. AI search engines are non-deterministic: the same prompt submitted to the same engine can yield different references across separate runs.

At Standing, we track AI search performance across five engines: ChatGPT, Perplexity, Gemini, Claude, and Google AI Overviews. We do not evaluate a brand based on a single search result. We execute a fixed basket of prompts five times per question per engine and calculate a Wilson interval on the output to establish a reliable baseline confidence band. Competitors run each prompt once, which is why none of them publish confidence bands.

Our pricing is built around continuous, multi-run measurement rather than one-off status checks:

  • Track: $100 per month for 3 domains.
  • Optimize: $300 per month for 5 domains with custom prompts.
  • Agency: $500 per month for 50 domains with a monthly re-scan.

Auditing your response headers with simple terminal tools ensures you do not feed junk data to answer crawlers. Once your server correctly returns 404 and 410 status codes for missing URLs, you remove the primary driver of negative engine hallucinations and establish a clean baseline for measuring actual brand recommendations.

See where you actually stand

Run a free check on your domain. Five AI surfaces, the real buying questions, about a minute. No signup.

Run a free check

Keep reading