Developers · 10 November 2026 · 4 min read

HTTP Status Codes Every Website Owner Should Know

By

What 200, 301, 302, 304, 403, 404, 410, 429, 500, 502, 503 and 504 mean for your site and its search rankings, and what to check first when you see each one.

HTTP Status Codes Every Website Owner Should Know

Every time a browser or search engine asks your site for a page, the server answers with a three-digit status code before anything else. Visitors rarely see it, but it decides whether Google keeps a page in its index, whether a redirect passes on its rankings, and whether your monitoring raises an alarm. You do not need to know all the registered codes. This guide covers the dozen that matter for a typical website and what to do about each. For any other code, look it up in the HTTP status code reference.

How to see the status code

In the browser, open the developer tools (F12), go to the Network tab and reload: the Status column shows the code of every request. From a terminal, curl is quicker:

curl -I https://example.com/old-page
curl -sIL https://example.com/old-page | grep -i -E "^HTTP|^location"

The first line shows only the response headers. The second follows redirects and prints each hop, which is the fastest way to find redirect chains. To reproduce a request from the browser exactly, use “Copy as cURL” in the Network tab; the curl to code converter turns it into a script if you need to test it repeatedly.

Success and redirects

  • 200 OK: the page was delivered. The only problem with 200 is when it is used for an error page. A “Page not found” message sent with status 200 is a soft 404: search engines may index it as a real page. Missing pages must return 404 or 410.
  • 301 Moved Permanently: the page has a new address for good. Search engines move the old URL’s signals to the new one. Use it for a new domain, HTTPS, a changed URL structure. 308 is the stricter modern equivalent.
  • 302 Found (and 307): a temporary redirect. The old URL stays the main one. Use it for short campaigns or maintenance, not for permanent moves. A permanent move done with 302 is one of the most common SEO mistakes after a redesign.
  • 304 Not Modified: not an error. The browser asked “has this changed since my copy?” and the server said no, so the cached copy is used. Lots of 304s mean caching works.

Keep redirects to a single hop. http:// to https:// to www to the new path is three requests where one would do.

Client errors (4xx)

  • 403 Forbidden: the server refuses access. Usual causes are file permissions or ownership, a folder without an index file, an IP restriction or a firewall (WAF) rule. If only some visitors see it, suspect the firewall or a country block.
  • 404 Not Found: nothing at this address. Normal for mistyped URLs; a problem when your own links or important old URLs return it. Redirect old URLs that had traffic or backlinks to the most relevant new page with a 301. If every page except the home page returns 404 on WordPress, the rewrite rules are missing: re-save the permalink settings.
  • 410 Gone: removed on purpose and not coming back. Search engines tend to drop a 410 page a little faster than a 404. Use it for discontinued products or deleted content with no replacement.
  • 429 Too Many Requests: rate limiting. Your server, CDN or a security plugin decided a client is making too many requests. If real users or search engine crawlers get 429, the limit is too strict. Send a Retry-After header so well-behaved clients know when to come back.

Server errors (5xx)

  • 500 Internal Server Error: the application crashed. The page tells you nothing; the PHP, Python or Node error log tells you everything. On WordPress, a recently updated plugin is a frequent suspect.
  • 502 Bad Gateway: a proxy (nginx, a load balancer, Cloudflare) could not get a valid answer from the application behind it. Check that PHP-FPM or the app container is running and that the socket or port in the proxy config is right.
  • 503 Service Unavailable: the server is overloaded or deliberately in maintenance. This is the right code for planned maintenance: search engines treat it as temporary and come back later, especially with a Retry-After header. Do not let maintenance last for days, though.
  • 504 Gateway Timeout: the backend answered too slowly. Look for a slow database query, an external API that hangs, or a heavy report, before simply raising the timeout.

The quick difference between 502 and 504: with 502 the backend gave a bad answer or none at all, with 504 it was still working when the proxy gave up.

Our take

Check your status codes after every redesign, migration or plugin update, not only when someone complains. Crawl the old sitemap and make sure each URL returns 200 or a single 301, never a 404 or a chain. Add uptime monitoring that alerts on any 5xx, and look at the error log before you change any timeout or limit: in our experience, the log line usually explains the problem faster than any amount of guessing.

Anthony ParkerNetwork and systems engineer

Anthony has worked in IT for more than 17 years: office and field networks, servers, telephony, user support and security patching in international organisations. He writes about networking, security, developer tools and calculators.