HTTP status code

Source: Internet
Author: User

HTTP Status Code refers to the request connection sent by the client during the HTTP protocol operation, and the server establishes a connection. The client sends an HTTP request and the server returns the response information (respond ), in this process, the corresponding error code is returned and displayed to the user due to client or server issues. The corresponding error code indicates different error messages, based on this information, the user can adjust the corresponding operations to modify the error, and finally avoid the reproduction of the error.

There are five types of HTTP status codes: 1xx, 2XX, 3xx, 4xx, and 5xx. Use three digits to indicate different errors.

The 1xx status code indicates a temporary response. Before receiving a regular response, the client should be prepared to receive one or more 1xx responses.

2XX Status Code indicates that the server successfully accepts client requests.

The 3xx Status Code indicates that the client browser must perform more operations to implement the request. For example, the browser may have to request different pages on the server or repeat the request through the proxy server.

Status Code 4xx indicates that an error occurs and the client appears to be faulty. For example, the client does not provide valid authentication information for a page that does not exist in a request.

The 5xx Status Code indicates that the server cannot complete the request due to an error.

HTTP/1.1 defines five types of status codes, which are composed of three digits. the first digit defines the category of the response.

1xx prompt message-Indicates that the request has been successfully received and processed.

2XX successful-Indicates that the request has been successfully received, understood, and accepted.

3xx redirection-To complete the request, further processing is required.

4xx client Error-The request has a syntax error or cannot be implemented.

5xx server errors-The server fails to implement valid requests.

Meaning of HTTP status code

"100": continue

"101": witching protocols

"200": OK

"201": created

& Quot; 202 & quot;: accepted

"203": Non-authoritative information

"204": NO content

"205": reset content

"206": Partial content

& Quot; 300 & quot;: Multiple Choices

"301": moved permanently

"302": Found

"303": see other

& Quot; 304 & quot;: not modified

"305": use proxy

"307": Temporary redirect

"400": Bad request

"401": unauthorized

"402": payment required

"403": forbidden

"404": not found

"405": method not allowed

"406": Not acceptable

"407": proxy authentication required

"408": request time-out

& Quot; 409 & quot;: Conflict

"410": Gone

& Quot; 411 & quot;: length required

"412": precondition failed

"413": Request Entity too large

"414": Request-URI Too large

"415": Unsupported media type

"416": Requested range not satisfiable

"417": Expectation failed

"500": Internal Server Error

& Quot; 501 & quot;: not implemented

"502": Bad Gateway

"503": Service unavailable

"504": Gateway time-out

"505": HTTP Version Not Supported

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.