HTTP Status Messages

Source: Internet
Author: User

An error may occur when the browser requests a service from the Web server.

It is possible to return the following series of status messages:

1xx: Information
message: Description:
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

message: Description:
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. This status code is useful if the user refreshes the page on a regular basis and 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

message: Description:
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 issues a conditional request (typically providing a if-modified-since header indicating that the customer only wants to update the document than the 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

message: Description:
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. This occurs when the POST request is converted to a GET request with very long query information.
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

5xx: Server error

message: Description:
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.
 

HTTP Status Messages

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.