HTTP Status Codes Explained: A Complete Guide from 1xx to 5xx
A complete guide to all HTTP status codes from 1xx to 5xx. Learn what 200, 301, 404, 500, and other codes mean, why they matter for SEO, and how to troubleshoot common errors.
What Are HTTP Status Codes?
Every time your browser sends a request to a web server, the server responds with a three-digit number known as an HTTP status code. Think of it as a communication language between your browser and the server — it tells you whether the request was successful, needs further action, or has encountered an error.
Whether you're a web developer debugging an application, an SEO specialist analyzing crawl reports, or a curious user wondering why a page says "404 Not Found," understanding HTTP status codes is essential for navigating the web effectively.
The Five Categories of HTTP Status Codes
HTTP status codes are grouped into five categories based on their first digit:
- 1xx (Informational): The server has received the request and is continuing to process it.
- 2xx (Success): The request was successfully received, understood, and accepted.
- 3xx (Redirection): Further action is needed to complete the request.
- 4xx (Client Error): The request contains an error or cannot be fulfilled.
- 5xx (Server Error): The server failed to fulfill a valid request.
1xx — Informational Responses
These codes indicate that the server has received the initial part of the request and the client should continue. Most users will never encounter these codes directly.
- 100 Continue: The server has received the request headers, and the client should proceed to send the request body.
- 101 Switching Protocols: The server agrees to switch protocols, for example, from HTTP to WebSocket.
- 102 Processing: The server is processing the request but has not yet completed it (WebDAV extension).
- 103 Early Hints: Allows the browser to start preloading resources before the server sends the final response.
2xx — Success Codes
These are the status codes you want to see — they mean everything is working as expected.
- 200 OK: The request succeeded. This is the most common status code and is returned when you successfully load a web page.
- 201 Created: The request succeeded and a new resource was created, commonly seen after POST requests.
- 202 Accepted: The request has been accepted for processing, but processing is not yet complete.
- 204 No Content: The request succeeded, but there is no content to return, often used for DELETE operations.
- 206 Partial Content: The server is delivering only part of the resource, commonly used for video streaming or resume downloads.
3xx — Redirection Codes
Redirection codes are particularly important for SEO, as they directly influence how search engines index your pages.
- 301 Moved Permanently: The resource has been permanently moved to a new URL. This is one of the most critical codes for SEO because it passes link equity (ranking power) from the old URL to the new one.
- 302 Found: The resource has been temporarily moved. Search engines will not transfer ranking power.
- 303 See Other: The response can be found at another URI and should be retrieved using a GET method.
- 304 Not Modified: The resource has not been modified since the last request. The browser can use its cached version, which helps improve page load speed.
- 307 Temporary Redirect: Similar to 302, but the request method must not change when reissuing the request.
- 308 Permanent Redirect: Similar to 301, but the request method must not change.
4xx — Client Error Codes
These errors indicate that something went wrong on the client side — usually a bad request or unauthorized access.
- 400 Bad Request: The server cannot understand the request due to malformed syntax or invalid parameters.
- 401 Unauthorized: Authentication is required to access the resource. The server typically prompts for login credentials.
- 403 Forbidden: The server refuses the request. Even with valid authentication, the user does not have permission to access the resource.
- 404 Not Found: The most famous error code! The requested page does not exist, usually because the URL is incorrect or the page has been deleted.
- 405 Method Not Allowed: The HTTP method used (e.g., GET, POST) is not supported for the requested resource.
- 408 Request Timeout: The server timed out waiting for the request.
- 409 Conflict: The request conflicts with the current state of the server.
- 410 Gone: The resource has been permanently removed and will not be restored. This tells search engines more definitively than a 404 to stop indexing the page.
- 429 Too Many Requests: The user has sent too many requests in a given time period and is being rate-limited.
5xx — Server Error Codes
These codes indicate that the server has encountered an error and typically require intervention from the website administrator.
- 500 Internal Server Error: The most common server error. The server encountered an unexpected condition that prevented it from fulfilling the request.
- 501 Not Implemented: The server does not support the functionality required to fulfill the request.
- 502 Bad Gateway: The server, acting as a gateway or proxy, received an invalid response from an upstream server.
- 503 Service Unavailable: The server is temporarily unable to handle requests, usually due to maintenance or overload.
- 504 Gateway Timeout: The gateway or proxy server did not receive a timely response from the upstream server.
How HTTP Status Codes Affect SEO
Search engine crawlers rely heavily on HTTP status codes to determine how to handle your web pages. Here's what you need to know:
- Excessive 404 errors can hurt user experience and reduce your site's crawl efficiency.
- Proper use of 301 redirects ensures you don't lose SEO value when changing URLs.
- Frequent 5xx errors can cause search engines to lower your site's ranking over time.
- Leveraging 304 caching can speed up page loading, which indirectly boosts SEO performance.
How to Check HTTP Status Codes
Want to quickly check the HTTP status code of a URL? Here are several methods:
- Browser Developer Tools: Press F12, navigate to the "Network" tab, and you'll see the status code for every request.
- Online Tools: Use the free online tools available at Bear Helpers to quickly inspect website status codes and analyze HTTP headers without installing any software. This is incredibly convenient for routine website maintenance and SEO audits.
- Command Line: Use
curl -I https://example.comin your terminal to view response headers including the status code.
Troubleshooting Common Errors
How to Fix 404 Errors
First, verify that the URL is correct. If the page has genuinely been removed, set up a 301 redirect to a relevant page. Regularly scanning your website for broken links using online tools is a best practice for maintaining site health.
How to Fix 500 Errors
Check your server error logs, verify that your code has no syntax errors, ensure your database connection is working properly, and confirm that your server has sufficient resources to handle requests.
How to Fix 503 Errors
Confirm whether your server is undergoing scheduled maintenance, check if traffic has exceeded your server's capacity, or contact your hosting provider to verify the service status.
Quick Reference Table
Here's a summary of the most commonly encountered HTTP status codes:
- 200 — OK (Success)
- 301 — Moved Permanently (SEO-friendly redirect)
- 302 — Found (Temporary redirect)
- 304 — Not Modified (Cache hit)
- 400 — Bad Request
- 401 — Unauthorized
- 403 — Forbidden
- 404 — Not Found
- 500 — Internal Server Error
- 502 — Bad Gateway
- 503 — Service Unavailable
Conclusion
HTTP status codes are foundational knowledge for web development, SEO, and website management. Understanding what each code means empowers you to diagnose issues faster, optimize your search rankings, and deliver a better user experience. Bookmark this guide for quick reference whenever you encounter an unfamiliar status code.
If you're looking for more free online tools to help with website management, development, and everyday productivity tasks, visit Bear Helpers to explore a growing collection of useful resources — no signup required.