HTTP Status Codes and SEO: The Impact of Each Code

See how each HTTP status code affects crawling, indexing, and rankings, which ones are worth fixing, and how to fix them, from 404s to server errors.

Melwyn Joseph Author
Updated November 19, 2026
HTTP Status Codes and SEO diagram with a browser 404 error screen at the centre, surrounded by labels: 200 OK, 301 Redirect, 410 Gone, and 500 Internal Server Error.

Every time a crawler requests a page, your server answers with a three-digit code before it sends anything else. That code tells Google whether the page is there, has moved, is gone, or is broken, and Google acts on it.

In most cases, your server sends the right code and you don’t need to do anything. Trouble starts when the code doesn’t match what’s really happening on the page. A page you want to rank returns an error and drops out of the index, a permanent move uses a temporary redirect and Google keeps showing the old URL, or an empty page returns 200 OK and tells Google all is well.

This guide covers what each code does to your SEO, how to find status code errors, how to fix the common ones, and what changes for AI crawlers.

What are HTTP status codes?

Browsers get the same status codes as crawlers. You rarely see them, because a browser simply shows the page when everything works, and the one most people know is 404, the “page not found” message. Behind the scenes, though, every request gets a code, and crawlers read it before they look at anything else.

The first digit puts each code into one of five classes. Google handles each class differently, according to its documentation on HTTP status codes, and that’s what decides how a code affects your SEO.

How each class of HTTP status code affects SEO: 1xx is ignored and has no effect, 2xx is needed to rank, 3xx redirects are neutral when used correctly, 4xx can lose rankings and traffic if the page mattered, and 5xx errors drop pages from the index if they last

1xx codes are the exception, because they don’t affect SEO at all. They’re interim messages the server sends while it gets the real reply ready. Google’s Gary Illyes said on the Search Off the Record podcast that Google skips them: “We just notice the next non-100 status code instead.”

Which HTTP status codes affect SEO

This table sums up the codes you’re most likely to meet and what each one means for your SEO. The sections after it explain each one in more detail.

CodeWhat it tells GoogleEffect on SEO
200 OKThe page loadedNeeded for a page to be indexed and rank, though it doesn’t guarantee either
301 / 308Moved permanentlyNeutral when used for a real move. The new URL takes the old one’s place in results
302 / 307Moved temporarilyNeutral when the move is temporary. Used for a permanent move, the old URL stays in results
304 Not ModifiedNothing has changedNeutral. Google doesn’t need to download the page again
404 / 410The page doesn’t existNeutral for pages nobody needed. Negative when the page had rankings, traffic, or backlinks
401 / 403Access refusedNegative if Googlebot is refused by mistake, because the pages drop out of the index
429Too many requestsNegative if it lasts. Google slows down crawling
500 and other 5xxThe server failedNegative. Crawling slows, and pages drop out of the index if the errors continue
503Temporarily unavailableNeutral during short planned downtime. Negative if it lasts

How each status code affects SEO

200: OK

A 200 means the server found the page and sent it. It’s the code every page you want in search results should return, because it tells Google there’s content to consider.

Even so, a 200 is a starting point rather than a promise. Google says a 2xx “doesn’t guarantee indexing”, and its systems still decide whether the content is worth adding to the index. A thin or duplicate page can return a perfect 200 and still not appear in results.

A 200 can also hide a problem. If a page returns 200 but is empty or shows a “page not found” message, Google may decide it’s really a missing page and leave it out of the index. Search Console calls this a soft 404, because the server never sends a 404 but Google treats the page as if it had.

301 and 308: moved permanently

A permanent redirect tells browsers and crawlers that a page now lives at a new address, and that it isn’t coming back. You’d use one when you change a URL, merge two pages, or move your site to a new domain.

For SEO, a permanent redirect hands the old page’s place in search results to the new URL. Google treats it as a strong signal that the new URL should be canonical, so over time it shows the new URL instead of the old one.

You also don’t lose link value by redirecting. Backlinks pointing to the old URL still count, and Google’s Gary Illyes said in 2016 that no type of 30x redirect loses PageRank.

A 308 works the same way for Google. The difference only matters for forms: if someone submits a form to a URL that has moved, a 308 sends the form data on to the new URL, while a 301 may not.

302 and 307: moved temporarily

A temporary redirect tells crawlers that a page has moved for now but will be back. A shop might use one to send visitors from a product page to a seasonal sale page for a week, or a team might use one during an A/B test.

Because the move is temporary, Google keeps the original URL in search results rather than the target. That’s exactly what you want when the move really is short-term, and it has no negative effect on SEO.

The risk comes from using a temporary redirect for a permanent move, which is easy to do by accident if you don’t check which type a redirect tool creates. Google keeps showing the old URL instead of the new one, so the page you meant to rank stays out of results.

Redirect chains and loops

A redirect chain is when one redirect leads to another, and then another. Chains build up when pages move more than once: a page moves in 2023, moves again in 2025, and the oldest URL ends up redirecting twice before it reaches the live page.

Long chains can stop Google reaching a page at all. Google’s crawlers follow up to 10 redirect hops, then give up, so a page at the end of a longer chain isn’t reached. A loop, where two URLs redirect to each other, never reaches a page.

Even short chains have a cost. Each hop adds another request for crawlers and another delay for visitors, so a page that sits behind three redirects is slower to load and slower to crawl than one behind a single redirect.

304: Not Modified

A 304 is a time saver. When a crawler has already fetched a page, it can ask the server whether anything has changed since then. If nothing has, the server replies with a 304 instead of sending the whole page again.

This has no direct effect on rankings. Google says its crawlers pass a 304 on as a sign that “the content is the same as last time it was crawled”, so the version Google already has stays in place.

The only risk is a page you’ve updated that keeps returning a 304. Google then keeps the old version, and your changes don’t show up in search results until the server recognises them.

404: Not Found and 410: Gone

A 404 means the server can’t find anything at that URL. A 410 goes a step further and says the page was there but has been removed on purpose. Google treats the two codes the same way and takes the URL out of its index.

What that costs you depends on the page. For a page nobody needed, such as an old test page or a URL with a typo, nothing. Google’s John Mueller said in the SEO Snippets video series that if there’s “nothing special in either the links, or the traffic, having those pages return 404 is perfectly fine.”

For a page that had rankings, traffic, or backlinks, a 404 is a real loss. The page’s rankings and visits go, and any backlinks pointing to it now lead to a dead end, so their value no longer reaches your site.

So which should you use? Developer and SEO expert Vincent Schmalbach puts it simply in his guide to 404 and 410 responses: “Use 410 Gone when you know the resource was deliberately removed and is likely to stay unavailable.” Use a 404 when the page is missing and you’re not sure whether it will come back.

401 and 403: access refused

A 401 means a page needs a login, such as a customer account area. A 403 means the server understood the request but refuses to allow it. Both are correct for private pages, and they don’t hurt SEO there, because those pages shouldn’t be in search results anyway.

The risk is a public page returning one by mistake. This can happen when a firewall, CDN, or security plugin decides Googlebot looks like an unwanted bot and blocks it. Google treats both codes like other 4xx errors, so pages that should rank drop out of the index.

Search Console lists 401 and 403 errors separately from other 4xx errors, which makes this kind of mistake easier to spot.

429: Too Many Requests

A 429 is your server’s way of saying a crawler is sending too many requests. Servers and CDNs send it when a request limit is reached, to protect the server from being overloaded.

Google respects that limit. It treats a 429 as a sign that your server is overloaded and slows down crawling, the same way it does for 5xx errors. That’s fine for a short spike, but if it goes on, new and updated pages can take longer to be picked up.

500 and other 5xx errors: server errors

A 5xx error means the server tried to answer the request and failed. A 500 is the general “something went wrong” code, and it can be caused by anything from a broken plugin or a coding error to the server running out of memory.

Server errors that go on for days can cost you pages in the index. Google slows down crawling when it sees them, keeps already indexed URLs for a while, and drops them if the errors continue. Google’s crawling also reacts to server errors quickly, as Mueller said on Reddit when a site’s crawl requests fell sharply: “I’d only expect the crawl rate to react that quickly if they were returning 429 / 500 / 503 / timeouts.”

A server error doesn’t have to be on the page itself to stop it being crawled. Google checks your robots.txt file before crawling, and if that file returns a 5xx, Google stops crawling the whole site for 12 hours, as our robots.txt guide explains.

503: Service Unavailable

A 503 tells crawlers the server can’t handle the request right now but will be back. That makes it the right code for planned downtime, such as maintenance or a server upgrade.

Used this way, a 503 protects your rankings. Google Search Central advised in October 2026 that “Serving a 503 (Service Unavailable) HTTP status code ensures already indexed URLs are preserved in Search while you work.”

That protection doesn’t last forever. A 503 that goes on too long has the same effect as any other server error, because Google eventually drops URLs that keep returning one.

How to find status code errors

Start with Google Search Console, since it shows the codes Google itself received. Go to Indexing > Pages and look at the “Why pages aren’t indexed” table. The reasons tied to status codes are:

  • Server error (5xx)
  • Redirect error
  • Not found (404)
  • Blocked due to unauthorized request (401)
  • Blocked due to access forbidden (403)
  • URL blocked due to other 4xx issue
  • Soft 404
  • Page with redirect
Search Console Page indexing report for example.com, with the Why pages aren't indexed table listing Page with redirect, Not found (404), Soft 404, Server error (5xx), Redirect error, and Blocked due to access forbidden (403), with the status code reasons highlighted

Click a reason to see the affected URLs, then export the list so you can sort it by importance. Don’t worry about “Page with redirect”, which is usually fine: it just means those URLs redirect somewhere else, so Google looks at the target instead.

To check a single page, use the URL Inspection tool, which shows the status code Google got the last time it crawled the page. The Crawl stats report, under Settings, breaks down all of Google’s requests by response code, which helps you spot a sudden rise in server errors before pages start dropping out.

Search Console only covers what Google has crawled, and its reports aren’t updated in real time. The WebYes website audit flags broken links and pages that don’t return a successful status code, on both mobile and desktop, including pages Google may not have crawled yet.

How to fix HTTP status code errors

Not every code needs fixing. Some only need setting up correctly, such as redirects, while errors like 404s and 500s need tracking down. Here’s how to handle each one.

How to implement a 301 correctly

A redirect is only as good as where it points. Before you add one, decide where each old URL should go, then follow these steps:

  • Redirect in one hop. Point each old URL straight to its final destination, not to another redirect. If you already have chains, update the oldest redirects to skip the steps in between.
  • Pick the closest match. Send each old URL to the page that replaces it, so visitors find what they came for. Sending everything to the homepage looks like a soft 404 to Google.
  • Update your own links. Change internal links and your sitemap to the new URL. The redirect still works without this, but crawlers and visitors save a hop every time.
  • Fix loops. If two URLs keep sending visitors back and forth, find the two rules responsible and remove one of them.

Expect the change to take a while to show. Google has to recrawl the old URL before the new one replaces it in results. Redirects matter most during a site move, and our website migration SEO checklist covers how to map and test them.

How to implement a 302 correctly

Use a 302 or 307 only when the move really is temporary, such as an A/B test or a short promotion. The test is simple: if you plan to switch it off and send people back to the original URL, it’s temporary.

If the change becomes permanent, switch it to a 301 straight away, so Google starts showing the new URL. Old temporary redirects are easy to forget, so check your redirect plugin or server rules every few months for any 302 that has quietly become permanent.

How to implement a 304 correctly

When 304s work, there’s nothing to do. They only cause trouble when a page you’ve updated still returns a 304, because that means your server isn’t recognising the change.

Servers decide whether a page has changed using the Last-Modified date or ETag, a kind of fingerprint for each version of a page. Check that these update when the content changes, and clear your server or CDN cache. Then run the URL through the URL Inspection tool to confirm Google gets the new version.

How to implement a 410 correctly

Use a 410 only for pages you’ve removed on purpose and won’t bring back, such as a discontinued product with no replacement or an old campaign page.

Before you do, check whether a relevant page exists that you could redirect to with a 301 instead. A redirect keeps visitors and backlinks landing somewhere useful, which a 410 can’t do.

How to fix 404 errors

A long list of 404s in Search Console can look alarming, but most of them don’t need any action. Only act on 404s for pages that had rankings, traffic, or backlinks. For each one:

  • Restore the page if it was removed by mistake, for example during a redesign.
  • Redirect it with a 301 to the closest relevant page if the content moved or has a replacement.
  • Leave it as a 404 or 410 if there’s nothing relevant to send people to. Redirecting everything to the homepage doesn’t help visitors, and Mueller said Google sees these redirects as soft 404s.

Then fix any internal links that still point to the old URL. Broken internal links send both visitors and crawlers to dead ends, and they’re fully in your control, unlike backlinks from other sites. Our guide to internal linking covers how to find them.

How to fix 401 and 403 errors on public pages

If Search Console reports 401 or 403 errors on pages that should be public, something is refusing Googlebot. Common causes are firewall rules, CDN bot protection, and security plugins, so check their settings for rules that block bots.

Once you’ve changed a rule, test the page with the URL Inspection tool. It fetches the page as Googlebot, so it shows straight away whether Google can now get through.

How to fix 500 errors

Server errors need fixing quickly, because the longer they go on, the more likely Google is to drop pages. Start with your server’s error logs, which often name the file or process that failed.

On WordPress, a plugin can be the cause, especially after an update. Turn plugins off one at a time until the error stops, and you’ll find the one responsible. If the logs point to memory limits or timeouts instead, talk to your host, since those may be server settings you can’t change yourself.

Once the errors stop, crawling recovers without you doing anything. Mueller said in the same Reddit thread: “Once things settle down on the server, the crawl rate will return to normal automatically.”

How to fix 503 errors

For planned downtime, serve a 503 and keep the downtime as short as you can. Don’t show a 404 or a normal page with a “we’ll be back” message, which returns a 200 and tells Google the maintenance page is your real content.

An unplanned 503 can mean the server is overloaded or something behind it has failed, such as a database. Find the cause the same way you would for a 500, starting with the error logs, and talk to your host if traffic spikes are overwhelming the server.

Soft 404s

A soft 404 is a page that returns a 200 but looks like an error to Google. The server says everything is fine, while the page itself says there’s nothing here.

Common causes are:

  • “Not found” messages served with a 200, for example from a theme or CMS that shows its own error page without sending a 404.
  • Empty pages, such as a category with no products or an internal search with no results.
  • Redirects to unrelated pages, such as sending a deleted product page to the homepage.

Soft 404s waste crawling on pages with nothing to index, and Google leaves them out of results anyway. You’ll find them under Soft 404 in the Page indexing report, which is worth checking in every technical SEO audit.

How you fix one depends on what the page should be:

  • If the page is gone, return a real 404 or 410, so the code matches what visitors see.
  • If the content moved, redirect to the most relevant page with a 301.
  • If the page should exist, add the content that’s missing, so Google has something to index.

Don’t block soft 404s in robots.txt. Google then can’t crawl the page to see that it’s fixed, and the URL can still be indexed. After fixing a page that matters, request indexing with the URL Inspection tool.

Status codes and AI crawlers

AI crawlers request pages over HTTP like any other crawler, so they get the same status codes Google does. A page that returns an error or a soft 404 gives them nothing to read, which means nothing to cite. Getting status codes right is part of keeping your content visible in AI search.

What AI companies do with each code isn’t documented the way Google’s handling is. Schmalbach points out that Google’s guidance only covers Google Search, and that nothing in it shows AI answers favour a 410 over a 404. The safe approach is to make the same choices you would for Google.

AI crawlers also differ in how they follow robots.txt. Some fetchers that visit a page when a user asks may ignore it, as our guide to AI crawlers explains.

FAQs on HTTP status codes

Is a 2xx status code an error?

No. A 2xx code means the request worked, and 200 OK is what every page you want to rank should return. The only catch is a soft 404, where a page returns 200 but has nothing useful on it.

Do 3xx status codes hurt SEO?

Not when they’re used correctly. Google has said no type of 30x redirect loses PageRank, though a temporary redirect used for a permanent move keeps the old URL in results, and long chains can stop Google reaching the page.

What is the difference between a 301 and a 302 for SEO?

A 301 is permanent, so Google shows the new URL in search results. A 302 is temporary, so Google keeps showing the original URL.

Does a 404 error hurt SEO?

Not on its own, and it doesn’t affect your other pages. It’s only a problem when the page had rankings, traffic, or backlinks, and then it’s worth restoring it or redirecting it to a relevant page.

Is a 410 better than a 404 for SEO?

For Google, no. It treats both the same way and removes the URL from its index, though a 410 is the clearer choice when you’ve removed a page on purpose.

Does a 503 affect SEO?

A short 503 doesn’t, and it’s the right code for planned maintenance, because Google keeps already indexed URLs in Search while it sees one. If it goes on too long, Google drops those URLs the same way it does for other server errors.

AUTHOR