An error appears in your console or your logs, and the first question is always the same: is this my bug or theirs? If you built the client, you doubt your own request. If you run the server, you doubt your last deploy. Both instincts waste time when the status code has already answered the question. The first digit tells you which side of the exchange failed, and reading it takes about one second.
This guide explains the 4xx and 5xx classes, the neighbouring classes, and how to look any code up with the free HTTP Status Code Checker on Ovatly. It also covers the honest edge cases, because the rule of thumb is a starting point, not a verdict.
Contents
- Quick answer
- The five classes, in one pass
- What 4xx really means: the request was at fault
- What 5xx really means: the server was at fault
- How to look up a code, step by step
- Worked example: a pasted 503 response line
- Where the rule bends: edge cases
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
The first digit decides whose problem it is. A 4xx code means the request was at fault: a wrong URL, a missing page, a login that is absent or refused. A 5xx code means the server was at fault: it received the request and failed to handle it, through overload, maintenance, a bad upstream response or a timeout. The full set of rules of thumb from the HTTP Status Code Checker is: 2xx means it worked, 3xx means look elsewhere, 4xx means the request was at fault, 5xx means the server was. When a code surprises you, paste it into the checker, as a bare number, a full response line like HTTP/1.1 503 Service Unavailable, or a keyword, and read its class, meaning and common causes before you change anything.
The five classes, in one pass
Every status code belongs to one of five classes, and the class is a summary of the whole exchange. 1xx codes are informational and rarely seen by hand. 2xx codes mean the request worked. 3xx codes are redirects: the thing you asked for is somewhere else, so look elsewhere. 4xx codes are client errors, and 5xx codes are server errors. The checker covers the standard codes developers meet daily, 30 codes across the 1xx to 5xx classes, and a valid but uncommon code still gets its class explanation.
This is why experienced developers glance at the first digit before reading anything else. A 404 and a 403 are different problems, but the same kind: something about the request. A 502 and a 503 differ too, but both say the server side failed to answer properly.
What 4xx really means: the request was at fault
A 4xx response is the server saying: I understood you, and the answer is no, because of what you asked. The classic cases are a URL that matches nothing (404), a request with no login behind it (401), a login the server recognises but refuses (403), and a request sent in a shape the server cannot accept. The fix almost always lives on the requesting side: correct the address, send the credentials, fix the request format, or accept that the resource is gone.
One 4xx deserves its own sentence. Looking up 410 in the checker gives "Gone": deliberately and permanently removed, stronger than a 404. A site uses 410 when content was removed on purpose, like a discontinued product, because it tells search engines to drop the page promptly, while a 404 leaves them checking back for a while.
What 5xx really means: the server was at fault
A 5xx response is the server admitting failure. The request may have been perfectly formed; the server still could not answer it. The causes the checker lists are practical ones: overload, maintenance, deployments still in progress, an upstream service that answered badly (502) or did not answer in time (504). The fix lives on the server side, and the sender can usually do nothing except wait and retry later.
That asymmetry matters for support work. When users report a 5xx, apologising and investigating is right. When they report a 4xx, the useful response is usually a question: what exactly did you request, and were you logged in?
How to look up a code, step by step
- Open the HTTP Status Code Checker.
- Type what you have: a bare code such as 404, a full response line such as
HTTP/1.1 503 Service Unavailable, or a keyword such as timeout. - Read the explanation card: the class, what the code actually means and its common causes.
- Or browse and filter the full reference table below the result to compare neighbouring codes side by side.
The lookup is paste-based only. The tool never contacts a server, so nothing about your sites or systems is sent anywhere.
Worked example: a pasted 503 response line
Say your monitoring paste gives you the line HTTP/1.1 503 Service Unavailable. Pasted into the checker, it extracts the code 503 and explains: class Server Error (5xx), the server cannot handle the request right now, usually temporarily, with overload, maintenance and in-progress deployments as the common causes. Before you have opened a single log file, the class has already routed the investigation: not the client's request, not the URL, but the server's current state. If the same paste had returned a 4xx instead, you would start at the opposite end, with the request itself.
Where the rule bends: edge cases
The class describes the failed exchange, and the failed exchange is not always where the fault truly sits. A 404 is a 4xx, formally the requester's problem, but if your own deploy deleted the page, renamed the route or broke the internal link that led there, the visitor's request was reasonable and the fault is entirely the site's. The code is still correct: from the server's side, the requested resource is not there. Ownership of the fix belongs to whoever removed it.
The reverse happens too. A client can provoke a 500 by sending input the server should have rejected gracefully; the class says server, and rightly so, because a well-built server answers bad input with a 4xx rather than falling over. Treat the first digit as the address of the investigation, then let the evidence move it if it must.
Limitations
The checker is a reference, not a probe. It explains codes you already have; it does not fetch URLs, test endpoints or say whether a website is up. It covers the standard codes developers meet daily, so an exotic code gets a class explanation rather than a full write-up. And no lookup tool can see your server: the common causes it lists are the usual suspects, not a diagnosis of your specific incident.
Common mistakes
- Treating every 404 as the visitor's typo. On your own site, a rising 404 count usually means broken links or a bad deploy.
- Retrying a 5xx immediately and repeatedly. The server has said it cannot cope right now; instant retries add load to an overloaded system.
- Reading 401 and 403 as the same refusal. One asks you to log in; the other tells you logging in will not help.
- Assuming the class settles blame in a dispute. It settles where to look first. Deploys, links and configuration can put the real fault on either side.
- Using a code lookup to check uptime. A paste-based reference cannot tell you whether a site is live.
FAQs
What is the simplest way to remember 4xx vs 5xx? 4xx means the request was at fault: the client asked for something wrong, missing or forbidden. 5xx means the server was at fault: the request may have been fine, but the server failed to answer it properly.
A page on my own site returns 404. Is that my fault or the visitor's? If the page should exist, it is yours, even though 404 is a 4xx code. A bad deploy, a deleted file or a broken internal link can all produce a 404 that the visitor did nothing to cause.
Can the HTTP Status Code Checker test whether my website is up? No. It explains codes you paste in: a bare number, a full response line or a keyword. It never fetches or tests a live website, so use your host's uptime monitor or status page for live checks.
What is the difference between 401 and 403? 401 means you are not authenticated: log in or send a valid token and it may work. 403 means the server knows who you are and still refuses; logging in again rarely helps.
Why do 502 and 504 appear together so often? Both come from proxies. 502 means the upstream sent an invalid response or is down; 504 means the upstream took too long to respond at all. Either way, the problem sits behind the proxy, not in your request.
Conclusion
Read the first digit before you read anything else: 4xx sends you to the request, 5xx sends you to the server, and the edge cases, like the deploy-caused 404, are worth the extra minute of thought. Keep the HTTP Status Code Checker open while you work and paste the exact line you were given. One member of the 4xx family deserves a closer look on its own: the rate limit response covered in What Is a 429 Too Many Requests Error. More references like this one live in the Developer Tools guides.