Every time your browser loads a page, image or API response, the server answers with a three-digit number before anything else. That number, the HTTP status code, says whether the request worked, moved somewhere else, was refused or failed. Most of the time you never see it. When something goes wrong, it is often the most important clue you have.
This guide explains how to use the HTTP Status Codes reference on RexBD, what each group of codes means, which codes matter most for websites and SEO, and how to troubleshoot the errors you are most likely to meet.
How status codes are organised
Status codes are grouped by their first digit:
| Range | Category | Meaning in plain English |
|---|---|---|
| 1xx | Informational | "Received, keep going." Rarely seen by users |
| 2xx | Success | "Done, here is what you asked for." |
| 3xx | Redirection | "It is somewhere else, go there." |
| 4xx | Client error | "There is a problem with the request." |
| 5xx | Server error | "The server failed to handle a valid request." |
The first digit alone tells you where to look. A 4xx error usually means the request was wrong: a bad link, missing permission, wrong input. A 5xx error means the server or something behind it broke.
How to use the HTTP Status Codes tool
Step 1: Search for a code or word
Open the HTTP Status Codes page and type a number such as 429, or a word such as "redirect" or "gateway".
Step 2: Read the plain-English meaning
Each code comes with a clear explanation of what it means and when it is used.
Step 3: Use it to troubleshoot
Combine the meaning with the context, such as which page failed and what changed recently, to find the cause.
Success codes (2xx)
- 200 OK: the standard success response. The page or data was returned.
- 201 Created: a new resource was created, typically after a POST request to an API.
- 204 No Content: success, but there is nothing to send back, common for delete operations.
- 206 Partial Content: the server sent part of a file, used for video streaming and resumable downloads.
Redirection codes (3xx)
Redirects matter a lot for SEO, so it is worth understanding the differences.
| Code | Name | Permanent? | Keeps method? | Typical use |
|---|---|---|---|---|
| 301 | Moved Permanently | Yes | Not guaranteed | Page moved for good, domain change |
| 302 | Found | No | Not guaranteed | Temporary redirect |
| 303 | See Other | No | Changes to GET | After a form submission |
| 307 | Temporary Redirect | No | Yes | Temporary, preserving POST |
| 308 | Permanent Redirect | Yes | Yes | Permanent, preserving POST |
| 304 | Not Modified | n/a | n/a | Browser cache is still valid |
301 versus 302 for SEO
When a page moves permanently, use a 301. It tells search engines to replace the old URL with the new one in their index and to pass the old page's signals to the new one. Use a 302 only when the move is genuinely temporary, such as during a short maintenance period or a limited-time campaign.
Google has said it treats long-lasting 302s similarly to 301s over time, but sending the right signal from the start is clearer and faster. For moving a page on an Apache server, the .htaccess Redirect Generator writes the rules for you, and the Nginx Redirect Generator does the same for Nginx.
Avoid redirect chains
A chain such as A โ B โ C โ D wastes time for users and crawlers. Point old URLs directly to the final destination.
Client error codes (4xx)
- 400 Bad Request: the request was malformed, such as invalid JSON in an API call. Check the request body and parameters. The JSON Formatter helps find syntax errors.
- 401 Unauthorized: authentication is missing or invalid. Despite the name, it means "not authenticated". Check login sessions, API keys or tokens. The JWT Decoder helps with token problems.
- 403 Forbidden: the server knows who you are, but you are not allowed. Common causes are file permissions, IP blocks, firewall rules or missing roles. On Linux servers, wrong file permissions are a classic cause; see the Chmod Calculator.
- 404 Not Found: nothing exists at that address. Usually a broken link, a typo or a deleted page.
- 405 Method Not Allowed: for example, sending a POST to an address that only accepts GET.
- 408 Request Timeout: the client took too long to send the request.
- 410 Gone: the page was removed deliberately and will not return. Search engines tend to drop 410 pages a little faster than 404s.
- 413 Content Too Large: an upload is bigger than the server allows. Raise the limit or compress the file. For images, the Image Compressor can help.
- 418 I'm a teapot: a joke code from a 1998 April Fools' document, still recognised by some software.
- 422 Unprocessable Content: the request was well-formed but the data failed validation, common in APIs and form submissions.
- 429 Too Many Requests: you hit a rate limit. Slow down, and respect the Retry-After header if one is sent.
Server error codes (5xx)
- 500 Internal Server Error: a generic failure in the application. Check the server's error log; it almost always names the real problem, such as a code exception, a database error or a misconfiguration.
- 501 Not Implemented: the server does not support the requested function.
- 502 Bad Gateway: a proxy or load balancer, such as Nginx or Cloudflare, got an invalid response from the application server behind it. Often the application crashed or is restarting.
- 503 Service Unavailable: the server is temporarily overloaded or in maintenance. Sending a 503 with a Retry-After header during planned maintenance tells search engines to come back later rather than dropping your pages.
- 504 Gateway Timeout: the proxy waited too long for the application. Look for slow database queries, slow external APIs or long-running scripts.
A worked example: a site suddenly shows 502 errors
A shop owner reports that the website shows "502 Bad Gateway" during evening sales. The pattern matters: the site works in the morning and fails under load.
Looking up 502 confirms the front server (Nginx) is not getting a valid response from the application server (PHP-FPM) behind it. Checking the logs shows PHP-FPM reaching its maximum number of worker processes, so new requests are rejected. The fix is a combination of raising the worker limit to match the server's memory, adding caching for product pages, and optimising one slow database query. The status code pointed straight at the right layer to investigate, saving hours of guessing.
Status codes and SEO
Search engines read status codes carefully:
- 200 pages can be indexed.
- 301 and 308 transfer signals to the new address.
- 404 and 410 pages are eventually dropped from the index. A few 404s are normal and do not hurt your site, but broken internal links waste crawl time and frustrate visitors.
- 5xx errors, if they persist, can cause search engines to crawl less and eventually drop pages.
- Soft 404s are pages that say "not found" but return 200. Search engines treat them as errors. Make sure missing pages return a real 404.
Google Search Console's Pages report lists URLs with errors, redirects and soft 404s. Check it regularly, especially after redesigns and migrations.
How to check a page's status code
- Browser developer tools: open the Network tab (F12), reload the page and look at the Status column.
- Command line:
curl -I https://example.com/pageshows the response headers, including the status. - Online checkers and SEO crawlers scan many URLs at once.
- Google Search Console's URL Inspection shows how Googlebot sees a page.
Our HTTP status code tips and mistakes article covers redirect strategy for site migrations.
Frequently asked questions
What is the difference between 401 and 403?
401 means you are not authenticated: log in or send valid credentials. 403 means you are authenticated (or it does not matter) but not allowed to access the resource.
Should I use 301 or 302?
Use 301 for permanent moves and 302 (or 307) for temporary ones.
Do 404 errors hurt my SEO?
A few 404s for pages that genuinely do not exist are normal. Fix broken internal links and redirect valuable old pages to their replacements.
What causes a 500 error?
A failure inside the application, such as a code error, a database problem or a configuration mistake. The server's error log shows the real cause.
What should my maintenance page return?
A 503 status with a Retry-After header, so search engines know the downtime is temporary.
Why do I see a 429 error when calling an API?
You have sent more requests than the API allows in a time window. Slow down, add a short delay between requests, cache results you reuse, and follow the Retry-After header if the API sends one. Many APIs publish their limits in their documentation.
Is the HTTP Status Codes reference free?
Yes. It is free and available on any device.
Keep reading
How to Use a Subnet Calculator: IPv4, CIDR and Masks ExplainedNetwork & domain ยท 7 min read
Gold Weight Converter Guide: Bhori, Ana, Rati, Point and GramsUnit converters ยท 8 min read
How to Create CSS Gradients: Linear, Radial and Conic (With Examples)Colour & design ยท 7 min read
How to Build a Colour Palette From One Colour (Colour Harmony Guide)Colour & design ยท 7 min read
How to Check Colour Contrast for Accessibility (WCAG AA and AAA)Colour & design ยท 7 min read
How to Calculate the Days Between Two Dates (Exact Date Difference)Date & time ยท 7 min read
