What is the meaning of the Response status code in HTTP?

Source: Internet
Author: User

The status code consists of three digits, and the first number defines the category of the response, divided into five categories:

1XX: Indication information--Indicates that the request has been received and continues processing

2XX: Success-Indicates that the request has been successfully received, understood, accepted

3XX: Redirect--further action is required to complete the request

4XX: Client Error--Request syntax error or request not implemented

5XX: Server-side error-the server failed to implement a legitimate request

Common status Code :

$ OK//client request succeeded

Bad Request//client requests have syntax errors and cannot be understood by the server

401 Unauthorized//request unauthorized, this status code must be used with the Www-authenticate header field

403 Forbidden//server receives request, but refuses to provide service

404 Not Found//request resource not present, eg: Wrong URL entered

Internal Server error//server unexpected errors

503 Server Unavailable//server is currently unable to process client requests and may return to normal after some time

Status code meaning of redirection :

300--307 means: To complete the request, you need to proceed further. Typically, these status codes are always redirected.

300 (multiple choices) the server can perform a variety of actions depending on the request. The server can select an action based on the requester, or provide a list of actions to choose from.
301 (permanently moved) The requested page has been permanently moved to the new location. When the server returns this response, the requestor is automatically forwarded to the new location. You should use this code to inform the search engine that the spider Web page or website has been permanently moved to a new location.
302 (Temporary move) The server is currently responding to requests from a Web page in a different location, but the requestor should continue to use the original location for future requests. The requestor is automatically transferred to a different location. However, because the search engine will continue to crawl the original location and index it, you should not use this code to tell the search engine page or site has been moved.
303 (See other locations) The server returns this code when the requestor should make a separate GET request for a different location to retrieve the response. For all requests except the HEAD request, the server automatically goes to a different location.
304 (not modified) The requested webpage has not been modified since the last request. When the server returns this response, the Web page content is not returned. If the page has not changed since the requestor last requested it, you should configure the server to return this response. Because the server can tell the search engine that the webpage has not changed since the last crawl, it saves bandwidth and overhead.

305 (using a proxy) the requestor can only use the proxy to access the requested Web page. If the server returns this response, the server also indicates which proxy the requestor should use.
307 (Temporary redirect) The server is currently responding to requests from a Web page in a different location, but the requestor should continue to use the original location for future requests. The requestor is automatically transferred to a different location. However, because the search engine will continue to crawl the original location and index it, you should not use this code to tell the search engine that a page or site has been moved.

What is the meaning of the Response status code in HTTP?

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.