πŸ› οΈToolsShed

HTTP Status Code Reference

Look up HTTP status codes with descriptions, use cases, and examples.

100
Continue1xx

The server has received the request headers and the client should proceed to send the request body.

Use case: Used in POST requests with large bodies; client checks if server will accept before sending.

101
Switching Protocols1xx

The server agrees to switch protocols as requested by the client.

Use case: WebSocket upgrade from HTTP to WS protocol.

102
Processing1xx

The server has received and is processing the request, but no response is available yet.

Use case: Long-running operations to prevent client timeout.

103
Early Hints1xx

Used to return some response headers before final HTTP message.

Use case: Preloading resources before the main response is ready.

200
OK2xx

The request succeeded. The meaning depends on the HTTP method used.

Use case: Standard success response for GET, POST, PUT requests.

201
Created2xx

The request succeeded and a new resource was created as a result.

Use case: Returned after a successful POST that creates a new resource.

202
Accepted2xx

The request has been accepted for processing, but processing has not been completed.

Use case: Async operations where processing happens in background.

204
No Content2xx

The server successfully processed the request and is not returning any content.

Use case: DELETE requests, or PUT/PATCH with no response body needed.

206
Partial Content2xx

The server is delivering only part of the resource due to a Range header sent by the client.

Use case: Video streaming, resumable file downloads.

301
Moved Permanently3xx

The requested resource has been permanently moved to a new URL.

Use case: Permanent redirects; SEO-friendly for URL changes.

302
Found3xx

The resource is temporarily under a different URI.

Use case: Temporary redirects, login redirects.

304
Not Modified3xx

The resource has not been modified since the last request.

Use case: Browser caching; server confirms cached version is still valid.

307
Temporary Redirect3xx

The request should be repeated with another URI but future requests can still use the original URI.

Use case: Temporary redirect that preserves the HTTP method.

308
Permanent Redirect3xx

The request and all future requests should be repeated using another URI.

Use case: Permanent redirect that preserves the HTTP method.

400
Bad Request4xx

The server could not understand the request due to invalid syntax.

Use case: Malformed JSON, missing required fields, invalid parameters.

401
Unauthorized4xx

The client must authenticate itself to get the requested response.

Use case: Missing or invalid authentication token.

403
Forbidden4xx

The client does not have access rights to the content.

Use case: Authenticated but not authorized; access denied to resource.

404
Not Found4xx

The server can not find the requested resource.

Use case: Invalid URL, deleted resource, or hidden resource.

405
Method Not Allowed4xx

The request method is known by the server but is not supported by the target resource.

Use case: POST to a read-only endpoint, DELETE on non-deletable resource.

408
Request Timeout4xx

The server would like to shut down this unused connection.

Use case: Client took too long to send a complete request.

409
Conflict4xx

The request conflicts with the current state of the server.

Use case: Duplicate resource creation, version conflicts.

410
Gone4xx

The requested content has been permanently deleted from the server.

Use case: Deliberately removed resources; stronger signal than 404.

422
Unprocessable Entity4xx

The request was well-formed but was unable to be followed due to semantic errors.

Use case: Validation errors β€” correct format but invalid data.

429
Too Many Requests4xx

The user has sent too many requests in a given amount of time (rate limiting).

Use case: API rate limiting, DDoS protection.

500
Internal Server Error5xx

The server encountered an unexpected condition that prevented it from fulfilling the request.

Use case: Unhandled exceptions, server-side bugs.

501
Not Implemented5xx

The server does not support the functionality required to fulfill the request.

Use case: HTTP method not recognized or supported by server.

502
Bad Gateway5xx

The server, while acting as a gateway, received an invalid response from an upstream server.

Use case: Reverse proxy issues, upstream server errors.

503
Service Unavailable5xx

The server is not ready to handle the request.

Use case: Server maintenance, overloaded server.

504
Gateway Timeout5xx

The server is acting as a gateway and cannot get a response in time.

Use case: Upstream server too slow, network timeouts.

505
HTTP Version Not Supported5xx

The HTTP version used in the request is not supported by the server.

Use case: Client using unsupported HTTP version.

Comments & Feedback

Comments are powered by Giscus. Sign in with GitHub to leave a comment.