The HTTP status code is a numeric code that represents the status of the Web server in response to an HTTP request. Each time the client sends an HTTP request to the Web server, the Web server returns a status response code. This status code is a three-digit number that tells the Web client whether the request was successful, or whether to take other actions.
The status code in the HTTP protocol 1.1 version can be divided into five major categories.
| Status code |
Function description |
| 100-199 |
Some actions to specify the client response |
| 200-299 |
Used to indicate success |
| 300-399 |
Used for files that have been moved and are often included in the locator header information to specify new address information |
| 400-499 |
Error used to specify the client |
| 500-599 |
Errors to indicate the server |
In production, the common HTTP status codes are
| status code |
detailed description |
| 200-ok |
The server successfully returned to the Web page |
| 301-moved permanently |
< Span style= "Color:rgb (51, 51, 51); font-family: "helvetica Neue", Helvetica,"pingfang Sc", "hiragino Sans gb"," Microsoft Yahei", Microsoft ya Black, Arial, Sans-serif; Background-color:rgb (255, 255, 255); font-size:14px; " > (permanent jump), the requested page has been permanently redirected to the new location. |
| 403-forbidden |
(no access), the server denies the request |
| 404-not Found |
The server could not find the requested page. |
| 500 -Internal Server Error |
(internal server error) |
| 502-bad Gateway |
(bad gateway), typically when the gateway server requests the backend service, the backend service does not correctly return the result as the HTTP protocol. |
| 503-service unavailable |
(service is currently unavailable), possibly due to overloading or downtime maintenance. |
| 504-gateway Timeout |
(Gateway Timeout), typically when a gateway server requests a backend service, the backend service does not complete the service at a specific time. |
HTTP status code viewing, which can be viewed in Linux using the Curl command
HTTP Common Status Codes