HTTP Status Code Explorer
Complete HTTP status code reference with descriptions, use cases, and code examples for Express, FastAPI, and Hono. Click any code or search by number or keyword.
Frequently Asked Questions
When should I use 200 vs 201 vs 204?▼
Use 200 OK for general success with a response body. Use 201 Created when a POST creates a new resource — include a Location header pointing to the new resource. Use 204 No Content for successful operations that return nothing (e.g. DELETE, or PATCH when you don't need to return the updated state).
What is the difference between 401 and 403?▼
401 Unauthorized means the request lacks valid authentication credentials — the client should authenticate and retry. 403 Forbidden means the server understood the request and the client IS authenticated, but lacks permission to access the resource. In short: 401 = not logged in, 403 = logged in but not allowed.
When should I use 422 instead of 400?▼
400 Bad Request covers malformed syntax (invalid JSON, wrong content-type). 422 Unprocessable Entity is for requests that are syntactically correct but semantically invalid — e.g. a valid JSON body where a required field fails business validation. REST APIs often use 400 for both, but GraphQL and some frameworks prefer 422 for validation errors.
What does 429 Too Many Requests mean and how should I handle it?▼
429 indicates the client has sent too many requests in a given time window (rate limiting). The response should include a Retry-After header indicating when the client can retry. Clients should implement exponential backoff and respect this header to avoid being permanently blocked.
Should I use 503 or 502 for downstream service errors?▼
Use 502 Bad Gateway when your server received an invalid response from an upstream service it's proxying to. Use 503 Service Unavailable when your server itself is overloaded or temporarily down for maintenance — include a Retry-After header. Use 504 Gateway Timeout when the upstream service didn't respond in time.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
OpenAPI Validator
Paste your OpenAPI 3.x spec (YAML or JSON) to validate structure, find missing required fields, detect duplicate paths, check for missing operationIds, and get errors and warnings with path references.
Open free tool →
HTTP Status Code Reference
Complete HTTP status code reference. Search all 1xx, 2xx, 3xx, 4xx, and 5xx codes with plain-English descriptions, real-world use cases, and when to use each in REST APIs.
Open free tool →
API Request Builder
Build and test HTTP requests visually with any method, headers, and body. Generate cURL commands instantly. Free online API testing tool with Pro unlimited access. No signup required.
Open free tool →
More Free Tools
Related Articles
curl 深度使用手冊:API 測試從入門到進階
curl 是每位開發者必備的 CLI 工具。本文涵蓋 GET/POST/PUT/DELETE 請求、認證、header 設定、檔案上傳、除錯技巧,以及 REST API 測試的完整實戰範例。
Hono vs Express: The New Node.js Server Framework Battle in 2026
A comprehensive comparison of Hono and Express in 2026 — performance benchmarks, middleware, TypeScript support, edge deployment, ecosystem maturity, and which framework to choose for your next API.
Complete HTTP Status Codes Reference for REST API Devs
The complete HTTP status codes reference for REST API developers. Every 1xx, 2xx, 3xx, 4xx, and 5xx code explained with real-world API examples and best practices.
FastAPI vs Django REST Framework 2025: Which Should You Choose?
FastAPI vs Django REST Framework compared for 2025. Performance benchmarks, feature comparison, real-world use cases, and a clear decision guide for your next Python API project.
Hono + Cloudflare Workers: Building a Production REST API in 2026
Deploy a type-safe REST API to Cloudflare's global edge network using Hono. Covers routing, middleware, D1 database, KV storage, authentication, and deployment — with production patterns you can copy today.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$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.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →