HTTP Status Codes

Every HTTP response includes a three-digit status code grouped into five classes.

2xx — Success

CodeNameNotes
200OKStandard success.
201CreatedLocation header should contain the new URI.
204No ContentCommon for DELETE and preflight CORS.
206Partial ContentRange requests for video/download resumption.

3xx — Redirection

CodeNameNotes
301Moved PermanentlyBrowsers cache aggressively.
302FoundMost implementations change POST to GET.
304Not ModifiedCached version still valid.
307Temporary RedirectPreserves HTTP method.

4xx — Client Error

CodeNameNotes
400Bad RequestCatch-all for malformed requests.
401UnauthorizedInclude WWW-Authenticate.
403ForbiddenAuthenticated but not authorized.
404Not FoundThe most famous status code.
418I'm a TeapotRFC 2324. Will never be reassigned.
429Too Many RequestsInclude Retry-After.

5xx — Server Error

CodeNameNotes
500Internal Server ErrorNever expose stack traces.
502Bad GatewayInvalid upstream response.
503Service UnavailableUse Retry-After.
504Gateway TimeoutUpstream didn't respond in time.