The HTTP status code is responsible for the return result of the client HTTP request, the marking of the server-side processing is normal, the notification error, and so on.
Category of status code:
Recorded on the RFC2616 HTTP status code has 40, plus WebDAV and other extensions, the number reached more than 60 kinds, but in fact, there are only 14, the next introduction of the representative of the 14 status code.
1 OK indicates that the request has been handled normally.
2.204 No Content indicates that the request was processed successfully, but no resources can be returned.
3.206 Partial Content indicates that the client made a scope request, and the server performed this part of the GET request. CONTENT-RANGE specifies the range of the response.
4.301 Moved Permanently indicates that the requested resource has been assigned a new URI and that a new URI (permanent redirection) should be used later.
5.302 Found indicates that the requested resource has been assigned a new URI and expects this request to use the new URI (temporary redirection).
6.303 See other indicates that the requested resource has been assigned a new URI, expects the request to use the new URI, and obtains the requested resource using the Get method.
Note: When the 301, 302, 303 response status codes are returned, almost all browsers change the post to get and delete the principal within the request message, and the request is sent again automatically.
301, 302 Standard is to prohibit the post method to change to get method, but in fact everyone did not follow this, so the direct use of 303 response is ideal.
7.304 Not Modified indicates that when a client sends a request with a condition, the server allows the request to access the resource, but the condition is not met. Does not return a response body, and redirection does not have a relationship.
Note: The attached condition is that the request message with the Get method contains any header in the if-match,if-modified-since,if-none-match,if-range,if-unmodified-since.
8, 307 temporary Redirect represents temporary redirection, and 302 is the same.
9.404 Bad Request Indicates that there is a syntax error in the request message.
Note: The browser treats the status code as if it were a $ OK.
10.401 unauthorized indicates that the request sent requires HTTP authentication, and if this is the second return of 401, authentication fails.
11.403 Forbidden indicates that the request was rejected by the server.
12.404 Not Found Indicates that the requested resource could not be found on the server.
13. Internal Server error indicates that a server side error occurred while executing the request.
14.503 Service unavailable indicates that the server is busy and cannot process the request. It may be that the server is temporarily over-loaded or is undergoing downtime maintenance.
(d) HTTP status code