Skip to main content

HTTP Status Code Reference

Every HTTP status code explained — with real-world use cases. Filter by category or search by code number, name, or keyword.

✓ 60K+ developers trust DevPlaybook ✓ Covers all 1xx–5xx codes ✓ No sign-up required

Frequently Asked Questions

What is an HTTP status code?▼

HTTP status codes are 3-digit numbers returned by a server to indicate the result of a request. They're grouped into 5 classes: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error). Every HTTP response includes a status code.

What's the difference between 401 and 403?▼

401 Unauthorized means the request lacks valid authentication — the server doesn't know who you are. 403 Forbidden means the server knows who you are, but you don't have permission to access the resource. Use 401 when credentials are missing or invalid; use 403 when the user is authenticated but unauthorized.

When should I use 404 vs 410?▼

Use 404 Not Found when a resource doesn't exist or you don't want to reveal whether it exists. Use 410 Gone when a resource existed but has been permanently deleted — this tells search crawlers to deindex the URL. If you don't track deletions, 404 is fine in most cases.

What is the difference between 301 and 302 redirects?▼

301 Moved Permanently tells browsers and search engines to permanently update their records — link equity transfers and the redirect is cached. 302 Found is temporary, so browsers keep the original URL and don't cache the redirect. For SEO-safe URL changes, use 301. For login flows or A/B testing, use 302.

What does HTTP 429 Too Many Requests mean?▼

429 indicates rate limiting — the client has sent too many requests in a given window. Best practice is to include a Retry-After header indicating when the client can retry. Clients should implement exponential backoff and jitter when they receive 429 responses from APIs.

When should a REST API return 422 vs 400?▼

400 Bad Request is for syntactically malformed requests (invalid JSON, missing Content-Type). 422 Unprocessable Entity is for requests that are syntactically valid but semantically wrong (correct JSON structure, but a field fails validation like 'age' being negative). Most modern APIs use 422 for form/field validation errors.

Sponsored

Disclosure

Affiliate disclosure: some links below may earn us a small commission at no cost to you. Learn more

Need to build and test HTTP requests?

API Request Tester →
Share this tool: X / Twitter LinkedIn
✓ 60,000+ developers use DevPlaybook ★★★★★ 4.8 / 5 on Gumroad ✓ MIT licensed · Instant download ✓ No login required

Related Products

on Gumroad

You Might Also Need

More Free Tools

Webhook Tester OpenAPI Validator HTTP Status Code Reference API Request Builder API Response Mock Generator HTTP Status Code Reference WebSocket Tester WebP Converter HTTP Status Code Lookup WebSocket Test Client HTTP Status Code Lookup API Response Time Tester HTTP API Tester HTTP Methods Reference OpenAPI Schema Validator OpenAPI Mock Generator API Test Case Generator Core Web Vitals Guide API Response Formatter & Analyzer Web Vitals Scorer Web Vitals Analyzer API Mock Server Config Generator REST API Request Builder API Response Mocker Core Web Vitals Budget Calculator HTTP Headers Analyzer API Rate Limit Calculator HTTP Headers Inspector HTTP Code Snippet Generator PWA Manifest Generator HTTP Mock Response Builder LLM Cost Calculator Caddy Caddyfile Generator HTTP Cache-Control Builder WASM Module Explorer HTTP Header Analyzer AI Prompt Cost Calculator HTTP/2 Server Push Headers Builder Lighthouse Score Simulator Mock Service Worker (MSW) API Mocking Guide Core Web Vitals Calculator HTTP Security Headers Checker LLM Prompt Cost Calculator AI Rate Limit Calculator WebAssembly Binary Inspector Web Vitals Budget Planner HTTP Cache Header Builder Web Performance Checklist Image Optimizer Checklist API Key Generator AI Doc Generator — Pro Tool Color Blindness Simulator curl Command Builder HTTP Security Headers Generator JSON Diff Viewer JSON Diff JWT Builder JWT Decoder Developer Utilities Rate Limiter Tester API Changelog Generator Service Worker Generator HMAC Generator CSP Header Builder Rate Limit Calculator CORS Policy Builder Haproxy Config Validator WCAG Contrast Checker HAR Diff Analyzer JWT Debugger Pro Vue Component Generator LLM Context Window Calculator LLM Token Counter Bundle Size Estimator SSL Certificate Checker Prompt Token Estimator nginx Config Builder Pulumi Modern IaC Guide Bundle Size Impact Calculator HTML5 Canvas API Playground Token Context Calculator OpenAI Function Calling Generator TTFB Analyzer Token Counter & Cost Estimator AI API Rate Limit Calculator JWT Decoder & Validator

Enjoying this tool? Get more like it.

Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →