HTTP Status Codes & Debugging Cheat Sheet

Every status code, explained in plain English — with what it means, when you'll see it, and how to fix the ones that hurt.

Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/http-status-codes" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/http-status-codes" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - HTTP Status Codes & Debugging Cheat Sheet</a></div>

How to read HTTP status codes

Every response from a web server starts with a three-digit code grouped by class: 1xx informational, 2xx success, 3xx redirection, 4xx client errors (the request was wrong), and 5xx server errors (the server failed).

The ones you'll actually see

Debugging workflow

Open your browser's developer tools (F12) → Network tab → reload the page. Every request shows its status code, letting you spot redirect loops (3xx), blocked resources (403/404), or failing APIs (5xx) in seconds. For API work, curl -i shows the status line of any endpoint.

Formats, sizes and other limits

The reference is a static table rendered by render(): code, canonical reason phrase, class (1xx informational through 5xx server error) and a plain-language note about when it is appropriate. Filtering matches the number and the description at once, so searching for "cache" finds 304 and searching for 429 finds rate limiting. The reason phrases follow the registry rather than any single framework's wording.

Where it stops working

Codes are stable; semantics are not. A 200 with an error body, a 302 where 303 was intended, or a 403 used to mean "not logged in" are all common and all outside what a reference can police. Vendor and framework extensions (Cloudflare's 5xx variants, nginx's 499) are not in the registry and are not covered here. Nothing about your own service is checked.

Privacy: nothing is uploaded

This is a static reference rendered locally; the page makes no request and cannot tell which codes your own service returns.

Frequently asked questions

What is the difference between 401 and 403?

401 means the request lacks valid credentials; 403 means the credentials are understood but insufficient. Using 401 without a WWW-Authenticate header confuses clients.

When should I use 422 instead of 400?

400 for malformed syntax, 422 when the syntax is valid but semantically wrong — though many APIs simply use 400 for both, and consistency matters more than purity.

Why is 418 in the list?

Because it is registered as an April Fools' joke and remains in the registry. It is not a code to use in production.