1XX – information response, processing
-
101 Switching Protocol
Protocol upgrade.
2XX – successful response
-
200 OK
Request normal return. The other one is200 Cache
It is HTTP strong cache related, indicating the cache content read directly. -
204 No Content
The server successfully processed the request without returning content. -
206 Partial Content
Some requests processed successfully. That is to say, HTTP 1.1 adds a new breakpoint for continuous transmission, which is generally used to download large filesRange
use.
3xx – redirect
-
300 Multiple Choice
Subsequent operations are required, and the user or browser is required to select one of the multiple redirection addresses returned. -
301 Moved Permanently
Permanent redirection. The server willLocation
Field to return the new address. Search engine will update and record the current address, which is generally used for site reconstruction and other scenarios. -
302 Found
Temporary redirection. Also inLocation
Returns the new address. The search engine does not update. -
304 Not Modified
The content has not changed, indicating that the browser’s cache is available. Generally used for HTTP negotiation cache.
4xx – client error
-
400 Bad Request
Generally, it is used as a client request parameter or semantic error and cannot be understood by the server. -
401 Unauthorized
The request requires user authentication. Generally, it means that the user does not carry the correct authentication information, that is, the user does not log in. -
403 Forbidden
The server refused execution. It is generally used for insufficient user rights, for example, the ordinary user requests the interface to which the administrator belongs. -
404 Not Found
The resource does not exist. Needless to say, the most common one. -
405 Method Not Allowed
Request method error. For example, getting user information is a get request, but the client sends a post request.
5xx – server error
-
500 Internal Server Error
In general, it is an unknown error that the server directly catches. -
502 Bad Gateway
Gateway error. -
504 Gateway Timeout
The request timed out while the server was acting as a gateway.