Skip to content

Category · 1 tool · 2 guides

HTTP and web tools

HTTP is the protocol underneath almost everything a web or backend developer builds. Every page load, API call, webhook and file download is a request and a response, and the response always starts with a three-digit status code that says what happened. Reading those codes correctly is the first step in debugging any web problem.

The well-known codes like 200, 404 and 500 are only part of the picture. Is a validation failure a 400 or a 422? Should a missing permission be 401 or 403? Why does a load balancer return 502 when your app returns 500? Choosing the right code makes your API predictable for clients, caches, monitoring and search engines, and reading the right meaning saves time when something breaks.

The tools here give you a fast, searchable reference with plain-language explanations and practical guidance for API design, and connect to tools for building and inspecting real requests.

Tools in this category

Common tasks

Key concepts

Status classes
1xx is informational, 2xx success, 3xx redirection, 4xx a client error and 5xx a server error. Clients that do not know a specific code treat it like the x00 code of its class.
401 vs 403
401 Unauthorized means the request has no valid credentials, so logging in may help. 403 Forbidden means the server knows who you are and you are still not allowed.
502, 503 and 504
These usually come from a proxy or load balancer: 502 means the upstream sent an invalid response or crashed, 503 means the service is unavailable, and 504 means the upstream did not answer in time.
Permanent vs temporary redirect
301 and 308 tell clients and search engines the move is permanent; 302 and 307 say it is temporary. 307 and 308 also guarantee the method and body are kept.
Cache-Control
The header that tells browsers and CDNs whether and how long they may store a response. no-store disables caching; max-age=3600 allows reuse for an hour.

Best practices

  1. Return the most specific correct status and a JSON error body with a machine-readable code and a human message.
  2. Never return 200 with an error inside the body; clients, monitoring and retries all depend on the status code.
  3. Send 429 with a Retry-After header when rate limiting so clients know when to try again.
  4. Use 308 or 301 for permanent URL changes so search engines transfer ranking to the new address.
  5. Treat 5xx responses as retryable only for idempotent requests, with exponential backoff.

Guides