HTTP Status Codes

HTTP status codes are returned by servers to indicate the status of a client's request. There are five classes of HTTP status codes:

Status CodeStatus NameDescription
1xxInformationalThe request was received, and the server is continuing to process it.
2xxSuccessThe request was successfully received, understood, and accepted.
3xxRedirectionFurther action needs to be taken by the user agent to fulfill the request.
4xxClient ErrorThe request contains bad syntax or cannot be fulfilled by the server.
5xxServer ErrorThe server failed to fulfill a valid request.

2xx Success Status Codes

Status CodeStatus NameDescription
200OKThe request was successful, and the server is returning the requested data.
201CreatedThe request was successful, and the server has created a new resource.
204No ContentThe request was successful, but there is no data to return.

4xx Client Error Status Codes

Status CodeStatus NameDescription
400Bad RequestThe request was malformed or invalid.
401UnauthorizedThe client is not authorized to access the requested resource.
403ForbiddenThe client does not have permission to access the requested resource.
404Not FoundThe requested resource could not be found on the server.

5xx Server Error Status Codes

Status CodeStatus NameDescription
500Internal Server ErrorThe server encountered an error while processing the request.
502Bad GatewayThe server received an invalid response from an upstream server.
503Service UnavailableThe server is currently unable to handle the request due to maintenance or overload.
504Gateway TimeoutThe server did not receive a timely response from an upstream server.

For more information about HTTP status codes, please refer to the HTTP/1.1 Status Code Definitions specification.