Status Code Category:
One, 2xx:
K OK, request is handled normally
204 no Content, the request succeeds, but no resources can be returned. (Client, browser-displayed page does not update)
206 partial Content, request for a range of resources, partial request.
Two, 3xx:
301 Moved Permanently, persistent redirection, the client needs to update the bookmark's reference URI.
302 Found, temporary redirection, the requested resource has been assigned a new URI, and you want the user (this time) to be able to use the new URI access. Although the 302 standard prohibits POST from being converted to GET, it is not observed when used in practice.
303See other, the 303 status code and the 302 Found status code have the same function, but the 303 status code clearly indicates that the client should use the Get method to obtain the resource, which differs from the 302 status code.
304 Not Modified, when a client sends a request with a condition , the server side allows the request to access the resource but does not meet the condition. (not related to redirection)
307 temporary Redirect, temporary redirect. The status code has the same meaning as 302 Found. 307 will follow the browser standard and will not change from POST to GET.
Three, 4xx:
There is a syntax error in the request message. When the error occurs, you need to modify the requested content and send the request again. In addition, the browser treats the status code as if it were OK .
401 Unauthorized, requests require HTTP authentication (BASIC authentication, DIGEST Certification) certification information. In addition, if 1 requests have been made before, the user authentication fails.
403 Forbidden, the request for resource access was rejected by the server. (Access rights)
404 Not Found, the requested resource could not be found on the server.
Four, 5xx:
Internal Server Error, The server side encountered an error while executing the request. It is also possible that a bug or some temporary failure exists in the WEB application.
503 Service unavailable, the server is temporarily over-loaded or is under maintenance and cannot now process the request.
HTTP status Code