The fourth chapter of results returned HTTP status code
HTTP status code indicates that the client is responsible for HTTP requests return a result, the server process is normal mark, notice errors occur.
1. Status Code category
2. 2XX success
200 OK |
It indicates that the service end request has been processed normally |
204 No Content |
It indicates successful treatment, but the response packet does not contain the entity body portion |
206 Partial Content |
Represents a range of client request, the server successfully processed |
3. 3XX Redirection
3XX response results indicate that the browser needs to do some special treatment to properly handle the request. When the response status code 302, 303, almost all browsers will change the POST GET, and remove the body of the request in the message, after the request is automatically sent again. Prohibit the POST method to change the GET method when 301,302 standard, but we will not do the actual use.
301 Moved Permanently |
Permanent redirection means that the resource has been assigned a new URI, URI should be used in the future to access resources now referred to. |
302 Found |
Temporary redirection means that the resource has been assigned a new URI, hope that this visit can use the new URI. |
303 See Other |
There is another request URI indicates the resource, use the GET method for directing access to resources. 303 and 302 similar, but 303 clear that you want to use the GET method to obtain resources. |
304 Not Modified |
When the client sends a request expressed conditional, although the server allows access to resources, but does not meet the conditions of the situation (and redirect it does not matter). |
307 Temporary Redirect |
Temporary Redirect. And 302 Found have the same meanings. Follow the standard browser, prohibit POST converted to GET. |
4. 4XX
The results show that the response 4XX client errors that occur when the reason.
400 Bad Request |
It represents a request for an error message appears. |
401 Unauthorized |
Representing a request sent by the authentication information requires HTTP authentication (the BASIC authentication, DIGEST authentication) of. Also, if you have previously had a request, it means that the user authentication fails. |
403 Forbiddex |
Represents access to a resource request is rejected by the server. Error is authorized or access. |
404 Not Found |
It said it could not find the resources or the server requests rejected the request on the server does not want to explain the reasons. |
5. 5XX
The results show that the response 5XX server error occurs when the reason.
500 Internal Server Error |
Indicating that the server error occurred while performing the request. It could be a bug or malfunction Web applications. |
503 Service Unavailable |
Indicating that the server is temporarily in overloaded or down for maintenance in progress, now unable to handle the request. |