Understanding HTTP Status Codes: 200, 301, 404, 500 and 503 Explained
A clear guide to the HTTP status codes you see most often, what each one actually means, and why 301 and 302 redirects are not the same thing.
16 October 2026 5 min read
Every time a browser talks to a server, the server replies with a status code as part of its response, a three-digit number that tells the browser (and anyone reading the server logs) what happened to the request. Most people only ever notice these when something has gone wrong, but understanding what they mean makes troubleshooting a website far easier. This post covers the five broad classes of status code defined in the HTTP specification, then looks closely at the ones you will encounter most often: 200, 301, 302, 404, 500 and 503.
The five classes of status code
HTTP status codes are grouped into five classes based on their first digit. This structure is defined in RFC 9110, the current specification for HTTP semantics.
| Class | Meaning |
|---|---|
| 1xx Informational | The request was received and the server is continuing to process it. |
| 2xx Successful | The request was received, understood, and accepted. |
| 3xx Redirection | Further action needs to be taken by the client to complete the request, usually because the resource is at a different location. |
| 4xx Client Error | The request contains bad syntax or cannot be fulfilled, and the fault lies with the request itself. |
| 5xx Server Error | The server failed to fulfil an apparently valid request, and the fault lies with the server. |
200 OK
This is the standard success response. It means the request succeeded and the server is returning the requested resource in the body of the response. It is the code you want to see for every normal page load, image, or API call, and it is the baseline that everything else in this list is measured against.
301 and 302: permanent versus temporary redirects
Both codes tell the client that the requested resource can be found at a different URL, but they carry different meanings and have different practical consequences.
- 301 Moved Permanently means the resource has been assigned a new permanent URL and any future references should use the new one. Browsers and search engines are expected to update their own records and treat the new location as the correct one going forward.
- 302 Found means the resource is temporarily available at a different URL, but the client should keep using the original URL for future requests, since the move is not expected to be permanent.
This distinction matters most for SEO. Using a 301 for a redirect that is genuinely permanent (for example, after moving a page to a new address for good) tells search engines to pass ranking signals to the new URL and update their index. Using a 302 signals that the original URL is still the canonical one, which is the right choice for things like a temporary maintenance page or an A/B test, but the wrong choice if you actually intend the move to be permanent.
404 Not Found
This means the server could not find a current representation for the requested resource, and is not disclosing whether that is because it never existed, has been deleted, or the URL was simply mistyped. It is a client error class response because the fault, from the server’s point of view, lies in what was asked for. A well-built 404 page usually offers navigation back to somewhere useful, since visitors reaching one are often following a broken link rather than making a mistake themselves.
500 Internal Server Error
This is a generic response used when the server encountered an unexpected condition that prevented it from fulfilling the request, and no more specific message is suitable. It almost always points to a fault on the server side, commonly a bug in application code, a misconfiguration, or a database connection failure, rather than anything wrong with the request itself. A host that actively manages server health, such as our Managed Cloud Hosting, can catch a lot of these conditions before they surface as a 500 for visitors.
503 Service Unavailable
This indicates the server is currently unable to handle the request, typically due to temporary overload or scheduled maintenance, and that the situation is likely to be resolved after some delay. It differs from a 500 in that it is explicitly framed as temporary rather than an unexpected fault. Servers returning a 503 can include a Retry-After header, given either as a number of seconds or a specific date and time, to tell the client when it is worth trying again. If 503s are showing up because of genuine sustained overload rather than a one-off event, that is usually a sign you have outgrown your current hosting plan and it is worth moving to VPS hosting for more headroom. Either way, a website monitoring service will alert you the moment errors like this start appearing, often before your visitors notice.
Summary
Status codes fall into five classes, from informational 1xx responses through to server error 5xx responses, and each class narrows down where the outcome (or the fault) sits. Day to day, the codes worth knowing by heart are 200 for success, 301 and 302 for permanent and temporary redirects respectively, 404 when a resource genuinely cannot be found, 500 for an unexpected server-side fault, and 503 for a server that is temporarily unable to cope. Knowing the difference between them makes reading server logs, debugging broken pages, and setting up redirects correctly a great deal easier.