HTTP status Code

Source: Internet
Author: User

Common HTTP status Codes

1 HTTP status code starting with
A status code that represents a temporary response and requires the requestor to continue the operation.
The request shall continue to be made by the requesting person (continued). The server returns this code to indicate that the first part of the request was received and is waiting for the remainder.
101 (switching protocol) The requestor has asked the server to switch protocols and the server has confirmed and is ready to switch.

2 HTTP status code starting with
Indicates a successful request
The request was successfully processed and is typically returned with this status code.
The 201 request succeeds and the server creates a new resource.
202 accepted the request but did not create the resource;
203 A request to return another resource;
The 204 server successfully processed the request, but did not return any content;
The 205 Server successfully processed the request, but did not return any content;
206 Processing part of the request;

3XX (redirected)
Redirect Code, also common code
+ (multiple choices) the server can perform a variety of actions for the request. The server can select an action based on the requestor (user agent) or provide a list of actions for the requestor to select. The
301 (permanently moved) requested page has been permanently moved to the new location. When the server returns this response (a response to a GET or HEAD request), the requestor is automatically forwarded to the new location. The
302 (temporary Move) server currently responds to a request from a Web page in a different location, but the requestor should continue to use the original location for future requests.
303 (View other locations) The server returns this code when the requester should use a separate GET request for different locations to retrieve the response.
304 (unmodified) The requested Web page has not been modified since the last request. When the server returns this response, the Web page content is not returned. The
305 (use proxy) requester can only use the proxy to access the requested Web page. If the server returns this response, it also indicates that the requestor should use the proxy. The
307 (temporary redirection) server currently responds to requests from Web pages in different locations, but the requestor should continue to use the original location for future requests.

An HTTP status code starting with

4 indicates an error in the request
A server does not understand the syntax of the request. The
401 request authentication is required. The server may return this response for pages that need to log on. The
403 server denies the request. The
404 Server Could not find the requested Web page.
405 Disables the method specified in the request. The
406 cannot respond to the requested Web page with the requested content attribute.
407 This status code is similar to 401, but specifies that the requestor should authorize the use of the proxy. The
408 server waits for a request when a timeout occurs. The
409 Server encountered a conflict while completing the request. The server must include information about the conflict in the response.
410 The server returns this response if the requested resource has been permanently deleted. The
411 Server does not accept requests that do not contain a valid Content-Length header field. The
412 server does not meet one of the prerequisites set by the requestor in the request. The
413 Server cannot process the request because the request entity is too large to exceed the processing power of the server. The
414 requested URI (usually a URL) is too long for the server to process. The
415 requested format is not supported by the requested page.
416 If the page cannot provide the requested scope, the server returns this status code. The
417 Server does not meet the requirements for the expected Request header field.

5 The initial status code is not common, but you should know
(Server internal error) the server encountered an error and could not complete the request.
501 (not yet implemented) the server does not have the capability to complete the request. For example, this code may be returned when the server does not recognize the request method.
The 502 (Error Gateway) server receives an invalid response from the upstream server as a gateway or proxy.
503 (Service Unavailable) server is not currently available (due to overloading or downtime maintenance). Typically, this is only a temporary state.
The 504 (Gateway Timeout) server acts as a gateway or proxy, but does not receive requests from the upstream server in a timely manner.
505 (HTTP version not supported) the HTTP protocol version used in the request is not supported by the server.

HTTP status Code

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.