Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

HTTP Status Codes: Redirects, Errors, Crawling, and Site Moves

How crawlers treat 2xx–5xx responses, when to use redirects vs 404, soft 404 pitfalls, and site migration checks.

This page centers on Google Search and Google’s crawling documentation for how HTTP status codes affect crawling and indexing. It also incorporates redirect and error guidance from Bing Webmaster Guidelines, Bing 404 best practices, Cloudflare, and performance notes from Chrome developer documentation.

HTTP status codes: what crawlers do with 2xx, 3xx, 4xx, and 5xx

Section titled “HTTP status codes: what crawlers do with 2xx, 3xx, 4xx, and 5xx”

HTTP status codes are generated by the server when it responds to a browser or crawler. For Google Search, a 2xx response means content may be considered for indexing, but indexing is not guaranteed.

For Google Search, an HTTP 2xx (success) status code doesn’t guarantee indexing.

— Google, How HTTP status codes affect Google’s crawlers

Google Search Console reports errors for 4xx–5xx and failed redirects. The Crawl Stats report groups crawl responses by type; under normal conditions most should be 200 or other good responses unless you are reorganizing or moving a site.

Range Typical meaning for Google Search Practical takeaway
2xx Content may enter indexing; empty or error-like body can become a soft 404 Only success pages meant to rank should return 200 with real content
3xx Crawlers follow redirects (up to 10 hops by default); final URL’s content is processed Use the right permanent vs temporary code; avoid chains
4xx (except 429) Content is not used; indexed URLs tend to drop out over time Do not use 401/403 for crawl throttling
5xx and 429 Crawling slows; indexed URLs may be kept temporarily then dropped Fix availability; use 503/429 for intentional temporary limits

Google’s technical requirements state that Google only indexes pages served with HTTP 200 (success); client and server error pages are not indexed.

200 vs error pages that look like success (soft 404)

Section titled “200 vs error pages that look like success (soft 404)”

A soft 404 is a URL that tells users the page does not exist while still returning 200 (success).

A soft 404 error is when a URL that returns a page telling the user that the page does not exist and also a 200 (success) status code.

— Google, Troubleshoot Google Search crawling errors

Google may exclude such pages from Search. Misconfigured servers can also serve identical soft 404 pages across unrelated hosts, which complicates canonicalization.

301 and 308 redirects: permanent moves, canonical signals, and SEO

Section titled “301 and 308 redirects: permanent moves, canonical signals, and SEO”

Permanent redirects tell clients and Google that a page has a new long-term location. Google treats 301 and 308 as equivalent for crawling: both are followed, and the redirect is a strong signal that the target should be processed.

Google follows the redirect, and Google systems use the redirect as a strong signal that the redirect target should be processed.

— Google, How HTTP status codes affect Google’s crawlers

Cloudflare notes that 308 Permanent Redirect is used for permanent relocation, API version upgrades, domain or path migrations, and maintaining HTTP method integrity on redirect.

When to use permanent redirects instead of rel="canonical"

Section titled “When to use permanent redirects instead of rel="canonical"”

For URL moves, providers align on server-side redirects rather than canonical tags alone.

When content moves: Use 301 redirects for permanent URL changes … Use redirects instead of canonical tags. Proper redirects preserve visibility, traffic, and grounding continuity.

— Bing, Bing Webmaster Guidelines

Google’s redirects and Search documentation recommends HTTP permanent redirects (301, 308) when you are sure the change will not be reverted, and consolidating duplicate URLs with redirects when you want to retire duplicate addresses.

Common conclusion: For permanent URL or domain changes, configure server-side 301 or 308 to the final URL, update internal links and sitemaps, and keep redirects in place long enough for recrawling (Google suggests at least one year for domain moves in site moves with URL changes).

302, 307, and temporary redirects (A/B tests and short moves)

Section titled “302, 307, and temporary redirects (A/B tests and short moves)”

Temporary redirects are followed, but Google treats them as a weak canonical signal; the source page may remain what Search shows.

By default, Google’s crawlers follow the redirect, and Google systems use the redirect as a weak signal that the redirect target should be processed.

— Google, How HTTP status codes affect Google’s crawlers

Bing limits 302 to very short-term changes (less than two days) in its guidelines. For website testing, Google recommends 302 (not 301) when redirecting to a variation URL for experiments.

Use 307 like 302 for Google’s crawlers. Pick the code that matches semantics for other clients (redirect types overview).

Redirect chains, latency, and multiple hops

Section titled “Redirect chains, latency, and multiple hops”

Google’s crawlers follow up to 10 redirect hops by default; content from intermediate URLs is ignored.

While Googlebot can follow up to 10 hops in a “chain” of multiple redirects … we advise redirecting to the final destination directly. If this is not possible, keep the number of redirects in the chain low, ideally no more than 3 and fewer than 5.

— Google, How to move a site

Chrome performance guidance and Lighthouse redirects audits stress that each redirect adds a round trip and slows the critical path—especially when links still point at old URLs.

Search Console classifies redirect errors (too many redirects, empty redirect, circular redirect) as problems in Crawl Stats.

404 and 410 responses: not found, gone content, and custom error pages

Section titled “404 and 410 responses: not found, gone content, and custom error pages”

Google does not index URLs that return 4xx (except the special handling of 429). Content on those responses is ignored; previously indexed URLs are removed over time.

In the case of Google Search, Google doesn’t index URLs that return a 4xx status code, and URLs that are already indexed and return a 4xx status code are removed from the index.

— Google, How HTTP status codes affect Google’s crawlers

Cloudflare lists typical causes: mistyped URLs, broken links, removed pages, and indexing mistakes. Error 410 suits deprecated content you want to mark as intentionally gone.

Google’s Crawl Stats notes that not every 404 must be “fixed”—404 is correct when a page is truly gone without a replacement (soft 404 troubleshooting).

Custom 404 pages: UX, status code, and what to avoid

Section titled “Custom 404 pages: UX, status code, and what to avoid”

A useful custom 404 still must return HTTP 404, not 200.

From an SEO perspective, a 404 page should return a 404 Status Code (Page Not Found) as opposed to a 200 (OK) status code. The return of a 404 status code alerts automated users, such as search engine crawlers, about a link that is broken; it is the only way an automated user can ascertain this.

— Bing, 404 Page best practices

Bing advises static, lightweight 404 HTML without ads, heavy scripts, or search widgets that can be crawled and create 404 loops. Google agrees custom 404s are for users; the server must still emit 404 (fix soft 404).

For removed content with no replacement, return 404 or 410. If content moved, return 301 to the new URL instead of a friendly 404.

Single-page apps and meaningful status codes

Section titled “Single-page apps and meaningful status codes”

When server-side status codes are impractical, JavaScript SEO basics suggest redirecting to a server route that returns real 404, or adding noindex on the error view—avoid showing an error message on a 200 response.

429, 5xx, DNS failures, and CDN “hard blocks”

Section titled “429, 5xx, DNS failures, and CDN “hard blocks””

Do not use 403 or 404 for crawl rate limiting. Google’s crawlers treat 429 as overload (similar to server errors), while other 4xx codes do not throttle crawl rate but do remove content from Search.

All 4xx HTTP status codes (again, except 429) will cause your content to be removed from Google Search. What’s worse, if you also serve your robots.txt file with a 4xx HTTP status code, it will be treated as if it didn’t exist.

— Google, Don’t use 403s or 404s for rate limiting

5xx and 429 slow crawling; indexed URLs may persist briefly then drop. Persistent 500 responses can remove URLs from the index (status code reference).

Network and DNS errors are treated like 5xx: crawling slows immediately, and unreachable indexed URLs can disappear within days. Google’s CDN crawling guidance recommends 503/429 for temporary CDN blocks—not random error text on 200 (soft errors), which can cause duplicate or removal issues.

When taking a site offline temporarily, Google’s pause guidance favors 503 with Retry-After, static HTML, and a reachable robots.txt—not site-wide 403/404/noindex that strip URLs from Search.

robots.txt fetch failures and redirect status codes

Section titled “robots.txt fetch failures and redirect status codes”

How Google uses robots.txt depends on the HTTP status of that file (robots.txt specification):

robots.txt response Googlebot behavior (summary)
2xx Rules are processed as served
3xx Up to five hops, then treated like 404 for robots.txt; no logical JS/meta redirects
4xx (not 429) Assumes no crawl restrictions
5xx / network Up to 12 hours crawl pause; then may reuse last good copy for 30 days
Unavailable 24h+ Crawling may halt until an acceptable robots.txt response (Crawl Stats)

Lighthouse warns that 5xx on robots.txt leaves crawlers unsure what to fetch.

Hosting or CDN change without changing visible URLs

Section titled “Hosting or CDN change without changing visible URLs”

Follow changing your hosting: prepare and test the new stack, lower DNS TTL ahead of cutover, verify Search Console tokens, remove staging noindex/robots.txt blocks, switch DNS, monitor logs and Index coverage, then retire old hosting when traffic reaches zero.

Use How to move a site: map old to new URLs, implement server permanent redirects, submit sitemaps, use Change of Address for domain/subdomain moves (not for HTTPS-only or path-only moves on the same host), and expect ranking fluctuation for weeks on medium sites (debugging traffic drops).

Avoid redirecting many unrelated old URLs to the homepage—Google may treat that as soft 404. After migration, expect heavier crawl load; insufficient capacity is a common mistake.

Cloudflare Cache Analytics notes that 301/302 responses often have no body, so analytics may show an empty content type—normal for redirects.

  • Soft 404: Error messaging on HTTP 200 (troubleshooting).
  • Wrong redirect target after migration—spikes in Not found in Search Console (site move troubleshooting).
  • Leaving noindex or crawl blocks on the production site post-move (troubleshooting).
  • Rate limiting with 403/404 instead of 429 or 503 (rate limiting post).
  • Sneaky redirects that show crawlers different destinations than users (spam policies)—distinct from legitimate consolidation or login redirects.
  • Multiple redirect hops on critical assets (Lighthouse) and mobile-only redirect patterns instead of responsive design (document latency).

Cloudflare troubleshooting reminds that 4xx errors seen in Search Console are often passed through from the origin—fix the underlying URL or link.

  1. In Google Search Console URL Inspection, confirm live URLs return the intended code (200 for indexable pages, 301/308 or 302/307 for redirects, 404/410 for gone pages).
  2. Review the Crawl Stats report for spikes in redirect errors, 4xx, 5xx, or DNS/fetch failures.
  3. Crawl a sample of old URLs after a move (or use your own crawler) to confirm a single hop to the correct destination, per site move guidance.
  4. Fetch robots.txt and verify status and rules match Google’s robots.txt handling.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about so it can be corrected quickly.