Skip to content
Web and HTTP2 min read

What are HTTP status codes?

Short answer

HTTP status codes are three-digit numbers a server puts in the first line of every response to say what happened to the request. The first digit gives the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. The common codes
  2. Example: checking a code
  3. Common mistakes
  4. On ArabyHost

Visitors never see these numbers when a site works normally, but browsers, search engines and monitoring tools rely on them. For example, Google drops pages that return 404 for a long time from its index, and passes the old page’s signals to the new one when you use a 301 redirect.

The common codes

Code Meaning When you see it
200 OK The page arrived normally
301 Moved permanently A page or domain moved; see 301 redirect
302 Found (temporary) A short-term redirect
304 Not modified The browser uses its stored copy
400 Bad request A malformed request or corrupt cookies
401 Unauthorized A password-protected page
403 Forbidden Access isn’t allowed; see 403 error
404 Not found Wrong URL or deleted page; see 404 error
429 Too many requests You exceeded the allowed number of requests in a short time
500 Internal server error A code or .htaccess error; see 500 error
502 and 504 Bad gateway / gateway timeout A proxy such as Cloudflare got no valid or timely reply
503 Service unavailable The server is busy or in maintenance

Example: checking a code

curl -I https://example.com/old-page/
# HTTP/2 301
# location: https://example.com/new-page/

Or press F12 in your browser, open the Network tab, and look at the Status column.

Common mistakes

  • A “not found” page that returns 200: this is a soft 404 and it confuses search engines. Deleted pages should return 404 or 410.
  • Temporary instead of permanent: using 302 for a permanent move keeps the old URLs in search results longer.
  • Long redirect chains: every extra hop slows things down, so send old URLs straight to the final destination.
  • A 500 with no details: the code never says why; the real cause is in the error log.

On ArabyHost

When your ArabyHost site returns a 4xx or 5xx error, the Araby AI assistant in the control panel reads the error log and explains the cause and the fix in plain language. Because the LiteSpeed web server reads .htaccess files, you can build correct 301 redirects with the htaccess redirect generator and paste them straight into the file.

FAQ

What's the difference between a 301 and a 302 redirect?

A 301 is permanent and tells search engines the page has moved for good. A 302 is temporary, so the old page stays in search results because it's expected to come back.

Do 404 errors hurt my rankings?

404s for deleted URLs are normal and Google doesn't penalise them. The real problems are broken internal links that frustrate visitors, and important pages moved without a 301.

What's the difference between 4xx and 5xx errors?

4xx means the problem is the request itself, such as a missing URL or forbidden access. 5xx means the server failed to handle a valid request, such as a code error or exhausted resources.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.