The first line in the Response message is called the status line, which consists of the HTTP protocol version number, the status code, and the status message.
The status code is used to tell the HTTP client whether the HTTP server produced the expected Response.
The 5 class status codes are defined in the http/1.1, and the status codes are made up of three digits, and the first number defines the category of the response
1** prompt-Indicates that the request has been successfully received and continues processing
2** Success-Indicates that the request has been successfully received, understood, accepted
3** Redirect-must be further processed to complete the request
4** Client Error-Request syntax error or request not implemented
5** server-side error-the server failed to implement a legitimate request
OK
The most common is the successful response status Code 200, which indicates that the request was successfully completed and the requested resource was sent back to the client
301/302 Found
Redirect, the new URL will be returned in the location in response, the browser will automatically use the new URL to issue a new request,301 permanent transfer, 302 temporary transfer
Request
client requests and syntax errors cannot be understood by the server
403 Forbidden
The server received the request but refused to provide the service
404 Not Found
The request resource does not exist (the wrong URL was lost)
Internal Server Error
Unexpected error occurred on the server
503 Server Unavailable
The server is currently unable to process client requests and may return to normal after some time
HTTP Status Code