Search by code or keyword, or filter by class. Each entry explains what the code means and, where it matters, how to use it correctly in an API or when redirecting.
43 codes
Pyalm builds custom software, APIs and integrations for businesses in India and the UAE. We made these developer tools for our own team — use them free, and talk to us when you need something built.
1xx codes are informational, 2xx mean success, 3xx tell the client to look elsewhere, 4xx mean the client made a mistake, and 5xx mean the server failed. A client can act on the class even when it doesn't know the exact code, which is why choosing the right class matters more than choosing the perfect code.
Use 201 with a Location header after creating a resource, 204 when there is nothing to return, 400 for malformed requests, 401 when authentication is missing, 403 when it is present but insufficient, 404 for a missing resource, 409 for conflicts, 422 for validation errors and 429 with Retry-After for rate limits. For permanent URL moves use 301 or 308; for temporary ones 302 or 307.
📖 Read the full guide: HTTP Status Codes for API Developers
Send GET, POST, PUT, PATCH and DELETE requests from your browser and inspect the response.
Format, validate, minify and syntax-highlight JSON — with exact error line and column.
Look up A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records — with SPF and DMARC checks.
Build a robots.txt with crawler rules, AI-bot blocking and sitemap — then test any URL against it.
401 means the request lacks valid authentication — the client should log in or send credentials. 403 means the server knows who you are and still refuses; logging in again will not help.
Use 301 (or 308) when the move is permanent so search engines transfer ranking to the new URL. Use 302 (or 307) when it is temporary. 307 and 308 guarantee the method and body are preserved.
Either is used. 400 suits syntactically malformed requests; 422 suits well-formed requests whose content fails validation. Pick one convention and document it.