HTTP Status Codes Explained for Website Owners

Hosting, Security & Maintenance2 min readBy the Monopage team

Every time a browser or search engine requests a page, your server replies with a three-digit status code. Most of the time you never see them, but when something goes wrong they explain what happened. Knowing the main ones helps you talk to your host and spot SEO problems.

The five families

  • 1xx: informational, rarely relevant to site owners
  • 2xx: success
  • 3xx: redirection
  • 4xx: the request has a problem, such as a missing page
  • 5xx: the server has a problem

Success

  • 200 OK: the page was delivered normally. This is what you want for pages that should exist.

Redirects

  • 301 Moved Permanently: the page has a new permanent address. Search engines transfer signals to the new one over time. Use for moves and merges. See 301 redirects explained
  • 302 Found (temporary): the move is temporary
  • 307 and 308: temporary and permanent redirects that preserve the request method; you may see them with HTTPS redirects and HSTS

Avoid long chains of redirects, which slow pages and waste crawling. See how to migrate a website without losing SEO.

Client errors

  • 400 Bad Request: the server could not understand the request
  • 401 Unauthorized: login required and not provided
  • 403 Forbidden: access is refused. It can come from permissions, a firewall, or security rules. See what is a web application firewall
  • 404 Not Found: nothing at this address. Normal for removed pages, but fix broken internal links. See 404 page design and 404 errors and soft 404s for SEO
  • 410 Gone: the page was deliberately and permanently removed
  • 429 Too Many Requests: the client is being rate limited

Server errors

  • 500 Internal Server Error: something went wrong on the server, often a code or configuration problem
  • 502 Bad Gateway and 504 Gateway Timeout: a server in the chain got a bad or slow response from another
  • 503 Service Unavailable: the server cannot handle the request now. It is the right response for planned maintenance, ideally with a Retry-After header, because search engines treat it as temporary

If 5xx errors persist, search engines may crawl your site less. See website downtime: what to do.

Where to see them

Soft 404s

A page that says "not found" but returns 200 confuses search engines. Make missing pages return a true 404.

What to do when you see errors

  1. Note the URL and code
  2. Check whether it happens for everyone or only some visitors
  3. For 404s, redirect to a relevant page if one exists, or leave a helpful 404
  4. For 5xx errors, contact your host with the time and URL
  5. Check what changed recently. See how to keep a website changelog

Common mistakes

  • Using 302 for permanent moves
  • Redirecting every dead page to the homepage
  • Showing a pleasant error page that returns 200

Business email is another essential service tied to your domain. Read business email: Google Workspace vs Microsoft 365.