HTTP Status Codes

Quick reference for all HTTP response codes with real-world examples.

31 status codes

31 codes

100
Continue1xx

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

101
Switching Protocols1xx

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

200
OK2xx

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

201
Created2xx

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

202
Accepted2xx

The request has been accepted for processing, but processing is not complete.

204
No Content2xx

The server successfully processed the request and returns no content.

206
Partial Content2xx

The server is delivering only part of the resource due to a range header.

301
Moved Permanently3xx

The resource has permanently moved to a new URL.

302
Found3xx

The resource has temporarily moved to a different URL.

304
Not Modified3xx

The client can use its cached version; the resource hasn't changed.

307
Temporary Redirect3xx

Temporary redirect; the request method must not change.

308
Permanent Redirect3xx

Permanent redirect; the request method must not change.

400
Bad Request4xx

The server cannot process the request due to invalid syntax or malformed data.

401
Unauthorized4xx

Authentication is required. The client must authenticate to get the resource.

403
Forbidden4xx

The client is authenticated but doesn't have permission to access the resource.

404
Not Found4xx

The server cannot find the requested resource.

405
Method Not Allowed4xx

The HTTP method is not supported for this endpoint.

408
Request Timeout4xx

The server timed out waiting for the client to complete the request.

409
Conflict4xx

The request conflicts with the current state of the resource.

410
Gone4xx

The resource is permanently gone and no forwarding address is available.

413
Content Too Large4xx

The request body exceeds the server's size limit.

415
Unsupported Media Type4xx

The server refuses the request because the media type is not supported.

422
Unprocessable Content4xx

The request is well-formed but has semantic errors.

429
Too Many Requests4xx

The client has sent too many requests in a given time period (rate limiting).

500
Internal Server Error5xx

The server encountered an unexpected error and cannot complete the request.

501
Not Implemented5xx

The server doesn't support the functionality required to fulfill the request.

502
Bad Gateway5xx

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

503
Service Unavailable5xx

The server is temporarily unavailable, usually due to maintenance or overload.

504
Gateway Timeout5xx

The server, acting as a gateway, did not receive a timely response.

507
Insufficient Storage5xx

The server cannot store the representation needed to complete the request.

508
Loop Detected5xx

The server detected an infinite loop while processing the request.

👋 Need help with code?