Status codes are issued by a server in response to a client’s request made to the server.
Status Code Categories
All HTTP response status codes are separated into five classes or categories. The first digit of the status code defines the class of response, while the last two digits do not have any classifying or categorization role.
1xx: Informational : Request received, continuing process
2xx: Success : The action was successfully received, understood, and accepted
3xx: Redirection : Further action must be taken in order to complete the request
4xx: Client Error : The request contains bad syntax or cannot be fulfilled
5xx: Server Error : The server failed to fulfill an apparently valid request
⋆ : Popular Status Codes
1xx: Informational Response
Request received, continuing process
Status Code | Error | Description | |
---|---|---|---|
100 | Continue | This indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished. \n To have a server check the request’s headers, a client must send Expect: 100-continue as a header in its initial request and receive a 100 Continue status code in response before sending the body. | |
101 | Switching Protocols | The client has asked the server to switch protocols and the server has agreed to do so, via the Upgrade message header field in response, see Protocol Upgrade Mechanism | |
102 | Processing | ||
103 | Early Hints |
2xx: Successful Response
The action was successfully received, understood, and accepted
Status Code | Error | Description | |
---|---|---|---|
⋆ | 200 | OK | |
⋆ | 201 | Created | |
⋆ | 202 | Accepted | |
203 | Non-Authoritative Information | ||
204 | No Content | ||
205 | Reset Content | ||
206 | Partial Content |
3xx: Redirection Messages
Further action must be taken in order to complete the request
Status Code | Error | Description | |
---|---|---|---|
300 | Multiple Choices | ||
⋆ | 301 | Moved Permanently | |
302 | Found | ||
303 | See Other | ||
304 | Not Modified | ||
⋆ | 307 | Temporary Redirect | |
⋆ | 308 | Permanent Redirect |
4xx: Client Error Response
The request contains bad syntax or cannot be fulfilled
Status Code | Error | Description | |
---|---|---|---|
⋆ | 400 | Bad Request | |
⋆ | 401 | Unauthorized | |
402 | Payment Required | ||
⋆ | 403 | Forbidden | |
⋆ | 404 | Not Found | |
⋆ | 405 | Method Not Allowed | |
406 | Not Acceptable | ||
407 | |||
⋆ | 408 | Request Timeout | |
⋆ | 409 | Conflict | |
⋆ | 410 | Gone | |
⋆ | 411 | Length Required | |
⋆ | 412 | Precondition Failed | The server does not meet one of the preconditions that the requester put on the request header fields. |
⋆ | 413 | ||
⋆ | 414 | ||
⋆ | 415 | ||
⋆ | 416 | ||
⋆ | 417 | ||
⋆ | 418 |
5xx: Server Error Response
The server failed to fulfill an apparently valid request
Status Code | Error | Description | |
---|---|---|---|
⋆ | 500 | Internal Server Error | |
501 | Not Implemented | ||
⋆ | 502 | Bad Gateway | |
⋆ | 503 | Service Unavailable | |
⋆ | 504 | Gateway Timeout | |
505 | HTTP Version Not Supported | ||
506 | Variant Also Negotiates | ||
510 | Not Extended | ||
511 | Network Authentication Required |