Nov
10

HTTP Status Codes Explained: 200, 301, 404, 500

11/10/2026 12:00 AM

Last updated: November 2026

Every time your browser asks a server for a page, the server answers with a short number before it sends anything else. That number is the HTTP status code. Most of the time you never see it, until something goes wrong and you meet a "404 Not Found" or a "500 Internal Server Error". Knowing what these codes mean helps you find problems on your website and fix them. This guide explains the most important ones in plain language.

What Is an HTTP Status Code?

An HTTP status code is a three-digit number that the server sends with its response. It says whether the request worked, whether the page moved, or whether something failed. The first digit tells you the group:

  • 1xx: informational. The request was received and is being processed. You will rarely see these.
  • 2xx: success. The request worked.
  • 3xx: redirection. The page is somewhere else.
  • 4xx: client error. The request has a problem, for example the page does not exist.
  • 5xx: server error. The server failed to complete a valid request.

The Codes You Will Meet Most Often

Code Name What it means
200 OK The page loaded normally.
301 Moved Permanently The page has moved to a new address for good.
302 Found The page is temporarily at a different address.
304 Not Modified The browser's saved copy is still current, so nothing new is sent.
307 Temporary Redirect A temporary redirect that keeps the request method the same.
308 Permanent Redirect A permanent redirect that keeps the request method the same.
400 Bad Request The server could not understand the request.
401 Unauthorized A login is needed.
403 Forbidden The server understood the request but refuses access.
404 Not Found The page does not exist at this address.
410 Gone The page was removed on purpose and is not coming back.
429 Too Many Requests Too many requests were sent in a short time.
500 Internal Server Error Something went wrong on the server.
502 Bad Gateway A server in the chain got a bad answer from another server.
503 Service Unavailable The server is temporarily unable to handle the request, for example during maintenance or overload.
504 Gateway Timeout A server in the chain waited too long for another server.

Success: 2xx

200 OK is what you want to see for every normal page. A page can be shown in search results only if it returns a 200 (after any redirects), and it does not carry a noindex instruction.

Redirects: 3xx

A redirect sends visitors and search engines from one address to another.

  • 301 and 308 say that the move is permanent. Use them when a page has a new home. Search engines treat the new address as the one to show.
  • 302 and 307 say that the move is temporary. Use them when the original address will come back, for example during a short test.

Google follows both kinds, and the redirect does not make a page lose its value. But the choice sends a signal about which address should be kept, so use the one that is true. If you redirect permanently, use a 301. For a hands-on guide, read how to set up the www vs non-www redirect.

Avoid redirect chains, where one address redirects to another that redirects again. They slow the page down, and search engines follow only a limited number of steps. Send the old address straight to the final one.

Client Errors: 4xx

404 Not Found is the best-known error. It appears when a link is wrong, when a page was deleted, or when a visitor mistypes an address. A few 404s are normal on any website. Google has said that they do not cause a penalty by themselves. What matters is that your important pages do not link to dead ends. Our guide on how to find and fix broken links explains how.

410 Gone says that a page was removed on purpose. Search engines treat it in a very similar way to a 404, and it may help a removed address leave the index a little sooner.

401 and 403 mean that access is not allowed. A 401 asks for a login, and a 403 refuses outright. Search engines cannot index pages that they cannot open, so check that important public pages do not return these.

429 Too Many Requests means that the server is limiting how fast requests arrive. Search engines respond by crawling more slowly.

Server Errors: 5xx

A 5xx code means that the problem is on the server side. Common causes are an error in your website's code, a problem with the database, a server that is overloaded, or a bad setting in a configuration file such as .htaccess.

These errors matter for SEO because search engines slow down their crawling when they see them. If they last for a long time, pages can drop out of search results. If your site must go offline for a short time, a 503 Service Unavailable with a "Retry-After" header tells search engines that the break is temporary. That is better than showing an error page with a 200 code.

The Soft 404 Problem

A soft 404 happens when a page tells visitors "Page not found" but the server still sends a 200 OK code. Search engines then see a normal page, and they may keep a page with no real content. Google reports these in Search Console as "Soft 404". A real error page must send a real 404 code. The same problem appears when a site redirects every missing page to the home page.

How to Check a Status Code

  1. Use our tool. Paste up to 100 addresses into our Server Status Checker to see the code of each one at once.
  2. Use your browser. Open the developer tools (press F12), go to the Network tab, reload the page, and click the first line to see its status.
  3. Use the command line. The command curl -I https://www.example.com/ prints the headers of a page, including the status code.
  4. Use Google Search Console. The Pages report groups addresses by problem, such as "Not found (404)" or "Server error (5xx)", and the URL Inspection tool shows how Google sees one address.

To test how your www and non-www addresses behave, try our www Redirect Checker.

What to Do When You See a Problem

You see Likely cause What to do
404 on an important page The page was deleted or moved Restore it, or redirect it to the closest replacement
404 on pages you removed on purpose Normal Nothing, or use a 410
Redirect chain Several old rules stacked up Point the old address straight to the final one
302 on a permanent move Wrong type of redirect Change it to a 301
403 on a public page Wrong permissions or a security rule Check file permissions and any firewall or security plugin
500 error An error in code or a configuration file Check the server error log, and undo your latest change
503 error Overload or maintenance Check hosting resources, and wait for maintenance to end
Soft 404 A "not found" page that sends a 200 Make it return a real 404

Common Mistakes

  • Using a 302 redirect for a permanent move.
  • Redirecting every missing page to the home page.
  • Leaving redirect chains in place after a site redesign.
  • Making a custom 404 page that returns 200.
  • Ignoring 5xx errors because the site seems fine for you.
  • Putting broken addresses in your XML sitemap. See our guide on how to create and submit an XML sitemap.

Frequently Asked Questions

Do 404 errors hurt my SEO?

A few are normal and do not cause a penalty. Many broken links on important pages hurt visitors and are worth fixing.

What is the difference between 301 and 302?

A 301 is permanent, and a 302 is temporary. Use the one that matches what you mean.

Why does my page show an error to some visitors but not to me?

Your browser may show a saved copy, or the server may be overloaded at times, or a security rule may block some visitors.

How often should I check my status codes?

Check your important pages once a month, and always after a redesign, a move, or a change in your server settings.

Next Steps

List your five most important pages, paste them into our Server Status Checker, and make sure that each one returns a 200 code.