HTTP status codes

Hereโ€™s a clear and concise list of the main HTTP status codes grouped by category, along with what they mean ๐Ÿ‘‡


๐ŸŸข 1xx โ€“ Informational

These indicate that the request was received and understood, and the server is continuing the process.

CodeMeaningDescription
100ContinueThe client should continue with its request.
101Switching ProtocolsServer is switching protocols as requested.
102ProcessingThe server is still processing the request (WebDAV).

๐ŸŸก 2xx โ€“ Success

These mean the request was successfully received, understood, and accepted.

CodeMeaningDescription
200OKStandard success response.
201CreatedResource successfully created.
202AcceptedRequest accepted but not yet processed.
204No ContentRequest successful but no content to send back.
206Partial ContentPartial response (used in range requests).

๐ŸŸ  3xx โ€“ Redirection

The client must take additional action to complete the request.

CodeMeaningDescription
301Moved PermanentlyResource has a new permanent URL.
302FoundTemporarily redirected to another URL.
303See OtherUse GET to retrieve the resource.
304Not ModifiedCached version is still valid.
307Temporary RedirectTemporary redirect; method must not change.
308Permanent RedirectResource permanently moved (method preserved).

๐Ÿ”ด 4xx โ€“ Client Errors

These indicate that the client seems to have made an error.

CodeMeaningDescription
400Bad RequestInvalid request syntax or parameters.
401UnauthorizedAuthentication required or failed.
403ForbiddenClient is not allowed to access this resource.
404Not FoundResource could not be found.
405Method Not AllowedHTTP method not supported for the resource.
408Request TimeoutServer timed out waiting for the request.
409ConflictRequest conflicts with current state of resource.
410GoneResource no longer available.
413Payload Too LargeRequest body is too large.
414URI Too LongThe requested URI is too long.
415Unsupported Media TypeServer doesnโ€™t support the request format.
429Too Many RequestsClient sent too many requests in a given time.

โšซ 5xx โ€“ Server Errors

These mean the server failed to fulfill a valid request.

CodeMeaningDescription
500Internal Server ErrorGeneric error when server fails unexpectedly.
501Not ImplementedServer doesnโ€™t support the request method.
502Bad GatewayInvalid response from upstream server.
503Service UnavailableServer is down or overloaded.
504Gateway TimeoutUpstream server failed to respond in time.
505HTTP Version Not SupportedServer doesnโ€™t support the HTTP version used.

Leave a Reply