HTTP Network Protocol Learning Summary

Source: Internet
Author: User

One: HTTP protocol status Code

The status code is mainly used to describe the results when the client sends a request to the server, to mark whether the service side is working properly, to notify the error, and so on.

The status code is divided into five main categories:

1 The opening status code: Information class status Code, the main receiving request, indicating acceptance is being processed;

2 Initial status code: The request is successful status code, indicating that the request is processed properly;

3 Initial status code: Redirect Status code, indicating that additional action is required to complete the client request;

4 Initial Status code: Client error, on behalf of the server could not process the request;

5 Initial Status code: Server error, on behalf of the server processing the request error;

Common Status Codes

200 the request was successful. Generally used for Get and post requests;

204 no content. The server processed successfully, but the content was not returned. Ensure that the browser continues to display the current document without updating the page;

206 part content. The server successfully processed a partial GET request;

301 permanent movement. The requested resource has been permanently moved to the new URI, the return information will include the new URI, and the browser will automatically redirect to the new URI. Any new requests in the future should be replaced with new URIs;

302 Temporary movement. Similar to 301. But resources are only temporarily moved. The client should continue to use the original URI;

304 Not modified. The requested resource is not modified and no resources are returned when the server returns this status code. Clients typically cache accessed resources by providing a header indicating that the client wants to return only the resources modified after the specified date;

400 syntax error of client request, server cannot understand;

403 The server understands the request of the requesting client, but refuses to execute the request;

404 the server cannot find the resource (Web page) based on the client's request. Through this code, the website designer can set "the resource you requested cannot be found" personality page;

500 Server Internal error, unable to complete the request;

503 due to overloading or system maintenance, the server is temporarily unable to process client requests. The length of the delay can be included in the server's Retry-after header information

HTTP Network Protocol Learning Summary

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.