http-Status Code

Source: Internet
Author: User

The preamble HTTP status code is responsible for the return of the client HTTP request, the marking of the server-side processing is normal, the notification error, and so on. The first bit in the number specifies the response type, the latter two bits are not classified, and the response category is mainly 5 kinds:
Categories of HTTP status codes
Category Reason Phrases
1xx Informational (Informational status code) The received request is being processed
2xx Success (Success status code) Request normal processing complete
3xx Redirection (Redirected status code) Additional action required to complete the request
4xx Client error (Customer fault status code) The server cannot process the request
5xx Server error (incorrect status code) Server Processing Request Error


2XX successful 2XX response results indicate that the request was processed normally. In the response message, the information returned with the status code changes depending on the method. For example, when you use the Get method, the entity that corresponds to the requesting resource is returned as a response, and the entity that corresponds to the request resource does not return with the message body as a response when using the Head method (that is, it returns only the header in the response and does not return the body part of the entity). 204 No Content The status code indicates that the request received by the server has been processed successfully, but does not contain the body part of the entity in the returned response message. In general, you only need to send information from the client to the server, and the client does not need to send new information content to use the case. 206 Partial content The status code indicates that the client is scoped, and the server successfully performed this part of the GET request. The response message contains the entity content specified by the Content-range. 3XX REDIRECT 3xx response results indicate that the viewer needs to perform some special processing to properly process the request. 301 Moved Permanently Permanent redirection, the status code indicates that the requested resource has been assigned a new URI, and the URI that the resource now refers to should be used later. The new URI is typically in the Location header field. 302 found temporary redirection, the status code indicates that the requested resource has been assigned a new URI and that the user (this time) will be able to access it using the new URI. Similar to the 301 status code, but the 302 status code represents a resource that is not permanently moved, but is temporary in nature. That is, the URI of the resource that has been moved may change the class. 303 See other The status code indicates that the requested resource should be directed to the request by using the Get method because another URI exists for the resource that corresponds to the request. For example, using the Post method to access the CGI program, the result of its execution is that it is expected that the client will be able to redirect to another URI with the Get method, returning a 303 status code. 304 Not Modified This status code indicates when a client sends a request with a condition (refers to a request packet with a Get method that contains If-match,if-modified-since,if-none-match,if-range, if-unmodified-since), the server allows requests to access resources, but does not meet the conditions. 304 When the status code returns, it does not contain any body parts of the response. 307 temporary redirect Temporary redirection.
4XX Client Error 4xx response results indicate that the client is the cause of the error. The status code indicates that there is a syntax error in the request message, and when the error occurs, the requested content needs to be modified and the request sent again. In addition, the browser treats the status code as if it were OK. 401 Unauthorized The status code indicates that the request sent requires the same authentication information as the HTTP authentication. 403 Forbiden The status code indicates that access to the requested resource has been rejected by the father, the server does not need to give a detailed reason for the refusal, but if you want to do so, you can describe the reason in the body part of the entity. 404 Not found The status code indicates that the requested resource could not be found on the server. In addition, it can be used when the server denies the request and does not want to justify it. 5XX Server Error 5XX response results indicate an error occurred on the server itself. Internal Server Error This status code indicates that the server has encountered an error while executing the request, or it may be a bug or some temporary failure in the Web App. 503 Service Unavailable This status code indicates that the server is temporarily processing the overload or is undergoing downtime maintenance and cannot process the request now.

http-Status Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.