Explanation of various HTTP status codes for accessing Web pages

Source: Internet
Author: User
1xx Information Series
The 100:continue-> server only accepts partial requests, but once the server does not reject the request, the client should continue to send other requests

101:switching protocols-> Server Conversion Protocol, The server converts the client's request to another protocol

102:processing-> processing continues to execute
2xx Success Series
200:ok-> Server successfully returned user requested data

201:create-> user new or modified data successfully

202:accepted-> request has entered the background queue for asynchronous task

203: The document has been returned correctly, but some of the answer headers may be incorrect because the copy of the document is being used

204:not content-> the user deleted the data successfully, the new document is not returned and the browser should continue to display the original document

205:reset Content-> There is no new document, the browser should reset what it displays to force the browser to clear the contents of the form
3xx REDIRECT Series
300:multiple Choices-> Returns a multiple-selection list of connections that allows the user to select a destination for a connection, up to five addresses

301:moved permanently-> The requested page has been moved to the new URL

302:found-> The requested page has been temporarily transferred to the new URL

303:see other-> The requested page can be found under another URL

305 The document requested by the use proxy-client should be extracted through the proxy server indicated by the location header.

307 Temporary redirect-The requested page has been temporarily moved to the new URL.
4xx Client Error series
Bad request-the server failed to understand the request or the request parameter was incorrect.

401 unauthorized-The requested page requires a username and password.

402 Payment required-This code is not yet available (reserved for future possible requirements).

403 forbidden-access to the requested page is prohibited.

the 404 Not found-server could not find the requested page.

the method specified in the 405 methods not allowed-request is not allowed.

the 406 not acceptable-server-generated response cannot be accepted by the client.

407 Proxy Authentication required-users must first authenticate using a proxy server so that the request is processed.

408 Request timeout-requests exceed the server's wait time.

409 conflict-The request could not be completed because of a conflict.

410 gone-The requested page is not available.

411 Length Required "content-length-" is not defined. If there is no such content, the server will not accept the request.

the prerequisites in the 412 precondition failed-request were evaluated by the server as failure.

413 Request Entity Too large-The server will not accept requests because the requested entity is too large.

414 Request-url Too long-The server will not accept the request because the URL is too long. This occurs when a POST request is converted to a GET request with a lengthy query information.

415 Unsupported Media type-The server will not accept requests because the media type is not supported.

The 416-server does not meet the range header specified by the customer in the request.
5xx Server Error series
Internal Server error-request was not completed. The server encountered unpredictable conditions.

501 not implemented-request not completed. The requested feature is not supported by the server.

502 Bad gateway-request not completed. The server received an invalid response from the upstream server.

503 Service unavailable-request not completed. The server is temporarily overloaded or machine.

504 Gateway timeout-gateways timed out.

505 HTTP Version not supported-server does not support the HTTP protocol versions specified in the request.
HTTP protocol Response status code looks a lot, but if it is not necessary to do ajax,rest, web crawler, Robot and other programs, we only need to understand the common 200, 302.304.404, 503 of these status codes. original load from: http://blog.csdn.net/u012562943/article/details/51729691

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.