HTTP Status Codes

Reference guide for all HTTP status codes with descriptions.

1xx Informational

100
Continue
The server has received the request headers and the client should proceed.
101
Switching Protocols
The requester has asked the server to switch protocols.
102
Processing
The server has received and is processing the request.

2xx Success

200
OK
The request has succeeded. The meaning depends on the HTTP method used.
201
Created
The request has been fulfilled and a new resource has been created.
202
Accepted
The request has been accepted for processing, but not completed yet.
204
No Content
The server processed the request but returns no content.
206
Partial Content
The server is delivering only part of the resource (range request).

3xx Redirection

301
Moved Permanently
The URL has been permanently moved to a new location.
302
Found
The URL has been temporarily moved to a different location.
304
Not Modified
The resource has not been modified since the last request.
307
Temporary Redirect
The request should be repeated with the same method at the new URL.
308
Permanent Redirect
The request and all future requests should use the new URL.

4xx Client Errors

400
Bad Request
The server cannot process the request due to a client error.
401
Unauthorized
Authentication is required and has failed or not been provided.
403
Forbidden
The server understood the request but refuses to authorize it.
404
Not Found
The requested resource could not be found on the server.
405
Method Not Allowed
The HTTP method is not supported for the requested resource.
408
Request Timeout
The server timed out waiting for the request.
409
Conflict
The request conflicts with the current state of the server.
410
Gone
The resource is no longer available and will not be available again.
422
Unprocessable Entity
The request was well-formed but contains semantic errors.
429
Too Many Requests
The user has sent too many requests in a given amount of time.

5xx Server Errors

500
Internal Server Error
The server encountered an unexpected condition.
501
Not Implemented
The server does not support the functionality required.
502
Bad Gateway
The server received an invalid response from an upstream server.
503
Service Unavailable
The server is not ready to handle the request (overloaded or down).
504
Gateway Timeout
The server did not get a response in time from an upstream server.

About HTTP Status Codes

HTTP status codes are three-digit numbers returned by a server in response to a client's request. They are grouped into five categories: 1xx (Informational), 2xx (Success), 3xx (Redirection), 4xx (Client Error), and 5xx (Server Error). Understanding these codes is essential for web development, API design, and debugging network issues.