# Why HTTP 200 OK Hides Broken /llms.txt Files (And 3 Production Fixes for AI Search)

> Source: <https://dev.to/proofofcite/why-http-200-ok-hides-broken-llmstxt-files-and-3-production-fixes-for-ai-search-310e>
> Published: 2026-11-26 18:41:05+00:00

**Key takeaway:** SPA catch-all rewrites return HTTP 200 with an HTML shell for a missing llms.txt, so exclude .txt routes from index.html rewrites and serve them as text/plain to get an honest 404; after fixing edge bot rules, one audited site went from selective 403s to 8/8 AI crawlers receiving HTTP 200.

If you added `/llms.txt` and `Allow: /` in `robots.txt` and moved on, there is a high chance AI search crawlers (`PerplexityBot`, `OAI-SearchBot`, `Claude-SearchBot`) are still seeing a broken response — while your browser shows `HTTP 200 OK`.

While auditing live domains with the free [ProofOfCite `/llms.txt` Validator](https://proofofcite.com/tools/llms-txt-validator) and [AI Crawler Checker](https://proofofcite.com/tools/ai-crawler-checker), three production failure modes kept showing up repeatedly behind valid-looking configurations.

`/llms.txt`
Most single-page app hosts (`Vercel`, `Cloudflare Pages`, `Netlify`, custom `nginx` `try_files`) configure a catch-all rewrite to `/index.html` so client-side routing works.

If `/llms.txt` is missing from your static public output directory — or overridden by a rewrite rule — the server does **not** return `404`. It returns `HTTP 200 OK` with `Content-Type: text/html; charset=utf-8` and an empty shell like:

```
<!doctype html><div id="root"></div>
```

Automated spec parsers expect `text/plain` or `text/markdown` starting with a Markdown `# Title` and a `> summary` blockquote. When an SPA shell comes back with HTTP `200`, uptime monitors stay green while AI ingestion parsers fail silently.

`vercel.json` / Cloudflare Pages `_headers` / Nginx)
Serve static `llms.txt` and `llms-full.txt` from your static `public/` directory with UTF-8 plain text headers **and** exclude `.txt` routes from SPA catch-all `index.html` rewrites so missing files return an honest `404` instead of HTML:

**Vercel (`vercel.json`):**

```
{
  "headers": [
    {
      "source": "/(llms\\.txt|llms-full\\.txt|robots\\.txt)",
      "headers": [
        { "key": "Content-Type", "value": "text/plain; charset=utf-8" }
      ]
    }
  ],
  "rewrites": [
    {
      "source": "/((?!llms\\.txt|llms-full\\.txt|robots\\.txt).*)",
      "destination": "/index.html"
    }
  ]
}
```

**Cloudflare Pages / Netlify (`_headers`):**

```
/llms.txt
  Content-Type: text/plain; charset=utf-8
/llms-full.txt
  Content-Type: text/plain; charset=utf-8
```

**Nginx (`try_files`):**

``` php
location ~* ^/(llms|llms-full)\.txt$ {
  try_files $uri =404;
  default_type text/plain;
  charset utf-8;
}
```

`PerplexityBot` with `403` even when `robots.txt` says `Allow: /`
This is the most common split-brain failure in production telemetry.

Even when a site explicitly allows bots in `/robots.txt` — for example:

```
User-agent: *
Allow: /
```

— edge Bot Fight Mode or custom LLM-blocker rules frequently leave `OAI-SearchBot` and `Claude-SearchBot` returning `HTTP 200`, while returning **` HTTP 403 Forbidden`** selectively to `PerplexityBot` (both on the root site and on `/llms.txt`), or blocking `GPTBot` and `ClaudeBot` via managed `robots.txt` injections.

In a live production telemetry comparison (`Nov 22 -> Nov 26, 2026`), disabling the edge LLM blocker and fixing managed rules flipped a site from selective `HTTP 403` failures across main and docs endpoints to **`8/8` AI crawlers receiving `HTTP 200`**, while documentation routes returned clean `text/markdown; charset=utf-8` (`2,833 B`) directly to AI bots alongside normal HTML for `Googlebot`.

If you block bulk scraping globally, add a **Custom Rule (Skip)** for verified AI search fetchers so live citation lookups are never blocked:

```
(cf.client.bot) and (
  http.user_agent contains "OAI-SearchBot" or
  http.user_agent contains "ChatGPT-User" or
  http.user_agent contains "Claude-SearchBot" or
  http.user_agent contains "PerplexityBot" or
  http.user_agent contains "Perplexity-User"
)
-> Action: Skip (Managed Rules, Super Bot Fight Mode)
```

`NXDOMAIN`)
Syntax linters only check whether `# Heading` and `[label](url)` look right. They do **not** resolve the domains inside your `/llms.txt`.

In real production audits, we see two silent drift bugs:

`llms.txt` links still pointing to legacy trade/app domains that 301-redirect elsewhere while omitting the canonical documentation index (`https://docs.example.com/llms.txt`).` rpc.testnet.monad.xyz` failing DNS resolution after moving to `testnet-rpc.monad.xyz`).
Every `/llms.txt` deploy check should verify four things together:

`HTTP 200` with `text/plain` or `text/markdown` (never `text/html`).`#` H1 title, `>` summary blockquote, and absolute HTTPS Markdown links.`404`/` 5xx` targets.`/robots.txt` (`Allow` + optional `Content-Signal: ai-train=yes, search=yes, ai-input=yes`) `User-Agent` responses across `OAI-SearchBot`, `ChatGPT-User`, `GPTBot`, `Claude-SearchBot`, `ClaudeBot`, `Perplexity-User`, and `Googlebot`.
You can run both checks free with no signup:
