Common HTTP status Codes

Source: Internet
Author: User

As a beginner, every time the problem is a timely summary is very good habits, so I have always insisted on doing so, as a programmer for the Internet development, the HTTP status code returned by some servers must know the meaning, so I today in my spare time to summarize these questions, On the one hand let oneself review again, on the other hand also hope can help others.

1xx: information

(A status code that represents a temporary response and requires the requestor to perform an action to continue)

News:

Describe:

Continue

The server only receives partial requests, but once the server does not reject the request, the client should continue to send the remaining requests.

101 Switching protocols

Server conversion protocol: The server translates the client's request to a different protocol.

2XX: Success

(used to indicate that the server has successfully processed the request's status code)

News:

Describe:

OK

The request succeeds (followed by the answer document for the Get and post requests.) )

201 Created

The request is created and the new resource is created.

202 Accepted

The request for processing was accepted, but the processing was not completed.

203 non-authoritative Information

The document has returned normally, but some of the answer headers may be incorrect because a copy of the document is being used.

204 No Content

There are no new documents. The browser should continue to display the original document. If the user refreshes the page periodically,

This status code is useful when the servlet can determine that the user's document is new enough.

205 Reset Content

There are no new documents. But the browser should reset what it displays. Used to force the browser to clear the form input.

206 Partial Content

The client sends a GET request with a range header, and the server finishes it.

3xx: redirect

(To complete the request, you need to proceed further.) Typically, these status codes are always redirected)

News:

Describe:

Multiple Choices

Multiple choices. A list of links. The user can select a link to reach the destination. A maximum of five addresses are allowed.

301 Moved Permanently

The requested page has been moved to a 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 a different URL.

304 Not Modified

The document was not modified as expected. The client has a buffered document and makes a conditional request

(typically a if-modified-since header is provided to indicate that the customer only wants documents that are updated on a specified date)

。 The server tells the customer that the original buffered document can continue to be used.

305 Use Proxy

The document requested by the client should be extracted from the proxy server indicated by the location header.

306 Unused

This code is used in the previous version. It is no longer used, but the code is still retained.

307 Temporary Redirect

The requested page has been temporarily moved to a new URL.

4XX: Client Error

(These status codes indicate that the request may have failed and that the server has been prevented from processing the request)

News:

Describe:

Request

The server failed to understand the request.

401 Unauthorized

The requested page requires a user name and password.

402 Payment Required

This code is not yet available.

403 Forbidden

Access to the requested page is forbidden.

404 Not Found

The server was unable to find the requested page.

405 Method not allowed

The method specified in the request is not allowed.

406 Not acceptable

The server-generated response cannot be accepted by the client.

407 Proxy Authentication Required

The user must first authenticate with a proxy server so that the request is processed.

408 Request Timeout

The request exceeded 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.

412 Precondition Failed

The prerequisites in the request were evaluated by the server as failed.

413 Request Entity Too Large

The server does not accept the request 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. When the POST request is converted to a long query letter

This behavior occurs when a GET request is

415 Unsupported Media Type

The server will not accept the request because the media type is not supported.

416

The server does not meet the range header specified by the customer in the request.

417 Expectation Failed

The server does not meet the requirements for the expected Request header field.

5XX: Server Error

(These status codes indicate that the server has an internal error while trying to process the request.) These errors may be the fault of the server itself, not the request error.

News:

Describe:

Internal Server Error

The request was not completed. The server encountered unpredictable conditions.

501 Not implemented

The request was not completed. The requested functionality is not supported by the server.

502 Bad Gateway

The request was not completed. The server received an invalid response from the upstream server.

503 Service Unavailable

The request was not completed. The server is temporarily overloaded or in a machine.

504 Gateway Timeout

The gateway timed out.

505 HTTP Version not supported

The server does not support the HTTP protocol version indicated in the request.

Common HTTP status Codes

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.