Skip to content

Status Code

Easy — everyone uses thisNetworking

ELI5 — The Vibe Check

An HTTP status code is the server's one-line verdict on your request. 200 means 'perfect, here's what you asked for.' 404 means 'can't find it.' 500 means 'I messed up.' The first digit tells you the category: 2xx=success, 3xx=redirect, 4xx=your fault, 5xx=server's fault.

Real Talk

HTTP status codes are three-digit numbers in HTTP responses that indicate the result of the server's processing of a request. They're grouped: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client errors), 5xx (server errors). Defined in RFC 7231.

Show Me The Code

// Common HTTP status codes
200 OK                    // Success
201 Created               // Resource created
204 No Content            // Success, no body
301 Moved Permanently     // Permanent redirect
302 Found                 // Temporary redirect
400 Bad Request           // Malformed request
401 Unauthorized          // Not authenticated
403 Forbidden             // Authenticated but not allowed
404 Not Found             // Resource doesn't exist
409 Conflict              // State conflict
422 Unprocessable Entity  // Validation failed
429 Too Many Requests     // Rate limited
500 Internal Server Error // Server broke
503 Service Unavailable   // Server overwhelmed

When You'll Hear This

"The API is returning 401 — the token is probably expired." / "Return 422 when validation fails."

Made with passive-aggressive love by manoga.digital. Powered by Claude.