HTTP Status Codes

1xx โ€” Informational

CodeNameDescription
100ContinueClient should continue with request
101Switching ProtocolsServer is switching protocols (e.g., to WebSocket)
103Early HintsPreload headers before final response

2xx โ€” Success

CodeNameDescription
200OKStandard success response
201CreatedResource created (POST/PUT)
202AcceptedRequest accepted, processing async
204No ContentSuccess with no response body (DELETE)
206Partial ContentRange request fulfilled (video streaming)

3xx โ€” Redirection

CodeNameDescription
301Moved PermanentlyURL permanently changed โ€” SEO juice transferred
302Found (Temporary)Temporary redirect โ€” use for A/B testing
303See OtherRedirect to GET after POST (PRG pattern)
304Not ModifiedClient cache is still valid
307Temporary RedirectTemporary, preserves HTTP method
308Permanent RedirectPermanent, preserves HTTP method

4xx โ€” Client Errors

CodeNameDescription
400Bad RequestMalformed request syntax or invalid parameters
401UnauthorizedAuthentication required (not authenticated)
403ForbiddenAuthenticated but not authorized
404Not FoundResource does not exist
405Method Not AllowedHTTP method not supported
408Request TimeoutServer timed out waiting for request
409ConflictResource state conflict (e.g., duplicate)
410GoneResource permanently deleted
413Payload Too LargeRequest body exceeds server limit
422Unprocessable EntityValidation error (common in REST APIs)
429Too Many RequestsRate limit exceeded

5xx โ€” Server Errors

CodeNameDescription
500Internal Server ErrorGeneric server error โ€” check logs
501Not ImplementedServer doesn't support this feature
502Bad GatewayUpstream server returned invalid response
503Service UnavailableServer overloaded or under maintenance
504Gateway TimeoutUpstream server did not respond in time
507Insufficient StorageServer ran out of storage
511Network Auth RequiredCaptive portal (hotel/airport WiFi)