- A crawler decides what to do with a URL from the status line and headers before it reads a word of the page, so those must match what the page really is.
- Most status-code damage is accidental: soft 404s, bot blocks that return 403 or a 200 challenge page, and 503s that outlive the outage they were meant for.
- Bot logs that record the exact status each crawler received for each URL are the only reliable way to confirm what AI fetchers actually see.
Every time a crawler requests a URL, the server replies with a three-digit status code before it sends any content. That code tells the crawler whether the page exists, whether it has moved, whether to try again later, and whether to stop asking altogether. Search crawlers have relied on these signals for decades, and AI fetchers, which pull pages to answer questions or build training and retrieval datasets, read the same signals, often with less documented retry and back-off behavior than Googlebot has.
The practical rule is simple. Return the status code that describes what is really true about the URL, and make the headers match. Most of the damage in crawl data does not come from exotic errors. It comes from pages that return 200 when they should return 404, bot protection that returns 403 to a crawler a human would never notice, and maintenance pages that answer 200 and quietly tell every bot the site is fine.
Why the header matters more than the page for AI crawlers
A human visitor reads the page. A crawler reads the envelope first. When the status line says 200 OK, a crawler will generally treat the body as the page's content, index or store it, and move on. When the status line says 404, the crawler will generally discard whatever body came back, even if that body was a perfectly readable article with a friendly we could not find that message on it.
This matters more for AI crawlers than people assume. Many AI fetchers are simple: they request a URL, check the status, parse the HTML they receive, and pass the text to a model or a store. They often do not render the page the way a browser does, and they may not run JavaScript, so the visible content a person sees is not what the fetcher sees. The status code and the raw response are the most reliable evidence the fetcher has. There is also a trust problem: a fetcher that receives a 200 will tend to believe the content is current and complete, whether or not it is, and a fetcher that receives a 503 or 429 will tend to back off. In both directions, the header is the thing being trusted, and the visible page is a secondary input. That is why a mismatch between header and page is worse than it looks.
200 OK: the only code that means index this
A 200 response says the request succeeded and the body is the representation of the resource. For a crawler, this is the only status that means the content is a candidate for indexing or retrieval. That sounds obvious, but 200 is also the code most often returned for things that are not really pages. Error messages served with a 200, login walls, empty category pages, search result pages with no results, and placeholder pages during a migration all return 200 by default in many frameworks. A crawler has no reason to doubt a 200, so it will keep those pages around. The fix is to be deliberate: every page that should be indexed should return 200 with real content, and every page that should not be indexed should return a status that says so, or carry a robots directive where that is the right tool.
301 and 302: redirects that say what you mean
A redirect tells the crawler that the content lives somewhere else. A 301 Moved Permanently says the address has moved for good, so a crawler should update its records to point at the new address and stop requesting the old one; over time, the signals associated with the old address are expected to flow to the new one. A 302 Found, the historical name for a temporary redirect, says the address is only temporarily elsewhere, so the crawler should keep the original as the canonical reference. Search engines have said they now handle long-lived 302s much like 301s in many cases, but do not build your architecture on that, because an AI fetcher has no obligation to follow the same logic.
The practical version: if you migrated a section permanently, send 301; if you are running an A/B test, a seasonal page or a temporary geographic redirect, send 302 and remove it when the reason ends. A common mistake is to use 302 for a permanent move because it was a framework default, then leave it in place for years while the crawler keeps checking the old address and the signals stay split. Two more things to watch: avoid redirect chains, where a URL goes to a second that goes to a third, and point the old address straight at the final destination; and avoid redirecting every missing page to the homepage, because a crawler that sees 301s from every dead URL to the home page may treat them as a soft error rather than a real move.
304 Not Modified: the cheapest response a crawler can get
A 304 response says, in effect, you already have the current version. It only happens when the crawler sends a conditional request that includes an If-Modified-Since header or an If-None-Match header carrying the ETag it received earlier. If the resource has not changed, the server responds with 304 and no body, and the crawler keeps its stored copy. For a site with many URLs and frequent crawls, this is one of the most useful things a server can do, because a 304 costs almost nothing on either side and lets the crawler spend its effort on pages that have changed. To make this work, your server has to produce consistent validators: an ETag should change when the content changes and stay the same when it does not, and a Last-Modified date should reflect when the content actually last changed. Some frameworks generate ETags from values that change on every request, in which case every response looks new and the conditional request is useless. The honest caveat is that not every AI fetcher sends conditional requests, but making your validators correct means any crawler that does send them gets an efficient response.
404 Not Found versus 410 Gone
A 404 says nothing is at this address right now. It does not say whether something was there before, whether it will return, or whether the absence is intentional, and many crawlers will keep checking a 404 for a long time. A 410 Gone says the resource was removed on purpose and is not expected to come back, and crawlers generally treat a 410 as a stronger signal and drop the URL more quickly. For content you have deliberately retired, 410 is the more accurate answer. The mistake to avoid is serving 404 for everything that is gone; that is fine for typos and random junk, but for a page that was real, linked and removed by your team, a 410 tells the truth and a 404 leaves the crawler guessing. If the content has a better new home, do not use 410; use a 301 to the closest equivalent, and avoid redirecting a removed page to an unrelated page like the homepage. Also check that your 404 pages are lean and actually carry the 404 status, not a slow template that itself redirects.
The soft 404 trap
A soft 404 is a page that tells the user the content is not there but returns a 200 status. It is one of the most common and most misleading problems in crawl data, and it hits AI fetchers just as hard as search crawlers. The typical cause is a framework or CMS that renders a not found template without setting the status code to 404. A search results page with zero results, an empty product category, a deleted user profile, and a filtered view with no matches are all common sources. A crawler has two bad options: index the error text as if it were content, which pollutes your index, or detect the soft 404 using its own heuristics, which is slower and not something you can control. Search engines run these heuristics; many AI fetchers have no equivalent check, so the error text simply becomes part of the document they store. The fix is to make the status code match the content: if a page is not found, return 404 or 410. To find soft 404s, look for pages that return 200 but have very little content, a heading containing words like not found or no results, or a body that matches your error template.
403 and 401: the blocks you did not mean to build
A 401 Unauthorized says the resource needs authentication. A 403 Forbidden says the server understood the request and refuses it regardless of credentials. For public content, neither code should appear in response to a normal crawler request, and when they do, something is probably blocking bots by accident. The usual sources are bot protection rules that are stricter than intended, web application firewalls that flag unfamiliar user agents, CDN configurations that restrict by country or IP range, and login-gated staging environments that were not excluded from production. Sometimes the block is more subtle: a challenge page may be served with a 200 status, so the crawler receives what looks like a successful page but the body is a verification prompt. This is arguably worse than a 403, because the crawler has no clear signal that anything went wrong. Decide deliberately what you want to allow, verify crawlers by the methods each provider documents rather than by user-agent string alone, and if you want to block certain bots, a 403 or a robots.txt directive is a clearer and more honest answer than a 200 challenge page. Your bot logs should show which requests got 401 or 403, from which user agents, for which URLs.
429 and 503: back off and planned downtime
A 429 Too Many Requests response means the client has sent too many requests in a given period, and a well-behaved crawler reads that signal and backs off. If a crawler is getting 429s, it is also likely retrying and reducing its request rate, which means fewer of your pages get fetched and refreshed over time. The right response is to find out why the limit is being hit: sometimes it is simply too low, and sometimes a crawler is requesting far more URLs than it should because of faceted navigation or parameter combinations. Raising the limit for everyone is rarely the best answer. If you do rate-limit, return 429 with a Retry-After value rather than silently dropping requests or serving slow, timed-out responses.
A 503 Service Unavailable means the server cannot handle the request right now, usually because it is overloaded or down for maintenance. Used well, it is the most useful status code you have during an outage, because it tells crawlers the problem is temporary and the content they already have is probably still valid. The key detail is the Retry-After header, which tells the crawler when to come back. Use 503 for planned maintenance and short outages, and do not use it as a permanent answer, because a 503 that runs for an extended period tells crawlers the content is unavailable and some will drop the URLs they cannot reach. The common mistake is serving a maintenance page with a 200 status, which is the worst of both options: the crawler believes the site is fine and stores the maintenance text as your content.
5xx errors and crawler back-off
Beyond 503, the 5xx family covers server failures, most commonly 500 Internal Server Error and 502 Bad Gateway, which often means an upstream service failed. When a crawler sees repeated 5xx responses, it generally reduces its request rate for your site and retries later. A short burst during a deployment is usually recoverable; a sustained pattern is more serious, because if a particular template returns 500 for certain inputs, crawlers that encounter those URLs will keep receiving the error and some will eventually drop those pages. Monitor your 5xx rate by URL pattern, not just in aggregate, so a single broken template does not hide inside a healthy average, and be careful with caching layers, because a CDN that caches an error response may keep serving that 500 long after the origin has recovered.
Reference list of codes
- 200 OK: the content is the resource; a candidate for indexing, as long as the content is real and not an error message.
- 301 Moved Permanently: the address has moved for good; crawlers should update their records.
- 302 Found (temporary redirect): the address is only temporarily elsewhere; crawlers keep the original as the reference.
- 304 Not Modified: the stored copy is current; returned only for conditional requests, and saves effort for both sides.
- 401 Unauthorized: authentication is required; for public content, often an accidental block.
- 403 Forbidden: the request is refused regardless of credentials; check whether bot protection is catching crawlers.
- 404 Not Found: nothing is at this address now; crawlers may keep checking it for a long time.
- 410 Gone: the resource was removed on purpose; a stronger signal than 404 for retired content.
- 429 Too Many Requests: the crawler is sending too many requests; it backs off, especially with Retry-After.
- 500 and 502: server faults; repeated errors lead crawlers to reduce their rate and may cause pages to be dropped.
- 503 Service Unavailable: temporary unavailability such as planned maintenance; use with Retry-After, and keep it short.
Where bot logs fit
Everything above depends on knowing what each crawler actually received, and that is harder than it sounds. Your application logs record what your application did. Your CDN logs record what the edge returned, sometimes with a different status than the origin produced. None of them, on their own, tells you the exact status each bot received for each URL. This is where InstantIndexingPro fits: it logs which bots fetch each URL and the exact status each received, so you can see, for example, that a particular AI fetcher gets 200 for a page your team believes is removed, or that a specific user agent receives 403 on a whole section while browsers do not. It also helps with the submission side, because IndexNow lets you notify participating search engines when a URL is added, changed or removed, which prompts them to recrawl and see the current status. Be clear about the limits: IndexNow is adopted by several search engines but not all, it does not control AI fetchers, and the status codes you serve still have to be correct before any submission can help.
What to do this week
Audit the status codes for your most important templates: request a sample of URLs from each and confirm that real content returns 200, removed content returns 404 or 410, and redirects use 301 or 302 correctly. Search for soft 404s, finding pages that return 200 but contain not found, no results or your error template text, and fix them so the status matches the content. Check your bot protection rules for accidental blocks, looking for 401, 403 and challenge pages served with 200 to crawlers, and decide deliberately which bots to allow using each provider's documented verification. Verify your validators by sending conditional requests to a few pages and confirming that unchanged content returns 304. Review your maintenance and error handling, replacing any maintenance page served with 200 by a 503 with Retry-After. Finally, set up per-bot, per-URL logging so you can see what each crawler actually receives, and re-check after each change, because the status a crawler sees is the one that counts.