HTTP error code

Source: Internet
Author: User
Tags rfc

                              HTTP Status Code table (version 1) Continue continues. The client should continue its request 101 switching protocols switch protocol. The server switches the protocol based on the client's request. You can only switch to a more advanced protocol, for example, switch to HTTP for a new version of Protocol 2 with the status code at the beginning of the OK request successfully. Typically used for Get and POST requests 201 Created has been created. A new resource was successfully requested and created 202 Accepted accepted. The request has been accepted, but the 203 non-authoritative information is not processed to complete the non-authorized information. The request was successful. But the meta information returned is not in the original server, but a copy of 204 no content. The server processed successfully, but the content was not returned. If the page is not updated, ensure that the browser continues to display the current document 205 reset content. The server processing succeeds, and the user terminal (for example: browser) should reset the document view. This return code can be used to clear the contents of the 206 partial content of the browser's form field. The server successfully processed a partial GET request 3 at the beginning of the status code multiple Choices multiple options. The requested resource can include multiple locations, which can return a list of resource characteristics and addresses used by the user terminal (for example: browser) to select 301 Moved permanently to permanently move. The requested resource has been permanently moved to the new URI, the return information will include the new URI, and the browser will automatically redirect to the new URI. Any future new request should use the new URI instead of the 302 Found temporary move. Similar to 301. But resources are only temporarily moved. The client should continue to use the original URI303 see other to view other addresses. Similar to 301. Use Get and POST requests to view 304 not Modified unmodified. The requested resource is not modified and no resources are returned when the server returns this status code. Clients typically cache accessed resources by providing a header indicating that the client wants to return only the resources modified after the specified date 305 use proxy. The requested resource must pass the proxy Access 306 Unused The HTTP status code that has been discarded 307 temporary Redirect temporary redirection. Similar to 302. Using a GET request to redirect a status code beginning with 4 The syntax error of the client request for the bad request, the server cannot understand the 401 unauthorized request requires the user's authentication 402 PAyment Required reserved, in the future use the 403 Forbidden server to understand the request client's request, but refused to execute this request 404 Not Found The server cannot find the resource (Web page) based on the client's request. Through this code, the website designer can set the "The resource you requested cannot be found" character page 405 method not allowed in the client request is forbidden 406 not acceptable the server cannot complete the request based on the content characteristics requested by the client 407 proxy Authentication Required Request Proxy authentication, similar to 401, but the requestor should use the proxy for authorization 408 request time-out the server waits for the client to send requests too long, time out 409 Conflict It is possible for the server to complete a put request from the client to return this code, when the server processes the request and the resource 410 Gone the client request does not already exist. 410 is different from 404, if the resource has been permanently deleted now can use 410 code, the site designer can specify the new location of the resource through 301 code 411 Length Required Server cannot process request information sent by client without Content-length 412 Precondition Failed client request information for a prerequisite error 413 request entity Too Large because the requested entity is too large for the server to process, and therefore rejects requests. To prevent successive requests from the client, the server may close the connection. If only the server is temporarily unable to process, it will contain a retry-after response information 414 Request-uri Too Large The URI of the request is too long (URI is usually the URL), the server cannot process 415 unsupported Media Type The server was unable to process the media format that came with the request 416 requested range not satisfiable the range of client requests is invalid 417 expectation Failed Server could not meet expect request header information 5 status code starting with 500 Internal Server error Server internal errors, unable to complete the request 501 not implemented the server does not support the requested feature, unable to complete the request 502 bad gateway to act as a gateway or proxy server, An invalid request was received from the remote server 503 Service unavailable due to overloading or system maintenance, the server is temporarily unable toProcesses the client's request. The length of the delay can be included in the server's Retry-after header information 504 Gateway time-out acting as a server for gateways or proxies, not getting requests from the remote server in time 505 HTTP Version not supported The server does not support the version of the requested HTTP protocol and cannot complete processing of the HTTP status Code list (version 2) 100 The client should continue to send the request. This temporary response is used to inform the client that some of its requests have been received by the server and are still not rejected. The client should continue to send the remainder of the request, or ignore the response if the request has been completed. The server must send a final response to the client after the request is complete. 101 The server has understood the client's request and will notify the client via a upgrade message header that a different protocol is being used to complete the request.   After the last empty line of the response is sent, the server switches to those protocols defined in the upgrade message header. Similar measures should be taken only when switching to a new protocol is more beneficial. For example, switching to a new HTTP version is more advantageous than an older version, or switching to a real-time, synchronized protocol to deliver resources that exploit this type of feature. 102 The status code extended by WebDAV (RFC 2518), on behalf of which processing will be continued to execute. 200 the request was successful, and the desired response header or data body will be returned with this response. 201 The request has been implemented, and a new resource has been established according to the request, and its URI has been returned with the location header information. If the necessary resources cannot be established in time, the ' 202 Accepted ' should be returned. 202 The server has accepted the request but has not yet processed it. As it may be rejected, the request may or may not be executed at the end.   In the case of asynchronous operation, there is no more convenient way to send this status code. The purpose of a response that returns a 202 status code is to allow the server to accept requests from other processes, such as a batch-based operation that executes only once a day, without having the client remain connected to the server until the batch operation is complete. Responses that accept requests for processing and return a 202 status code should include in the returned entity some information indicating the processing of the current state, as well as pointers to processing status monitors or state predictions so that the user can estimate whether the operation has completed. 203 The server has successfully processed the request, but the returned entity header Meta information is not a valid set on the original server, but a copy from a local or a third party. The current information may be a subset or a superset of the original version. For example, metadata that contains resources may cause the original server to know the meta information is super. Use this status codeis not required and is appropriate only if the response is returned with a number of OK without using this status code. 204 The server successfully processed the request, but did not need to return any entity content, and wanted to return the updated meta information. The response may return new or updated meta information in the form of an entity header.   If the header information exists, it should be echoed with the requested variable.   If the client is a browser, then the user's browser should keep the page that sent the request without any changes in the document view, even if the new or updated meta information by specification should be applied to the document in the user's browser's active view. Because the 204 response is forbidden to contain any message bodies, it always ends with the first empty line after the message header. 205 The server successfully processed the request and did not return any content. However, unlike the 204 response, a response that returns this status code requires the requestor to reset the document view.   The response is primarily used to accept user input and immediately resets the form so that the user can easily start another input. As with the 204 response, the response is also suppressed to contain any message bodies and ends with the first empty line after the message header. 206 The server has successfully processed a partial GET request.   HTTP download tools such as FlashGet or Thunderbolt are used to implement a breakpoint continuation or to decompose a large document into multiple download segments for download at the same time.   The request must contain the range header information to indicate the scope of content that the client expects, and may contain if-range to be used as a request condition. The response must contain the following header fields: Content-range is used to indicate the range of content returned in this response, and if Content-type is a multi-segment download for multipart/byteranges, each multipart segment should contain Conten The T-range field is used to indicate the content scope of this paragraph.   If the response contains Content-length, then its value must match the true number of bytes of the content range it returns.   Date ETag and/or content-location, if the same request should return a 200 response.   Expires, Cache-control, and/or Vary, if the value may be different than the value of the other response of the same variable as before. If this response request uses If-range strong cache authentication, then this response should not contain other entity headers, and if the request for this response uses If-range weak cache authentication, then this response prohibits the inclusion of other entity headers, which avoids inconsistencies between the cached entity content and the updated entity header information. Otherwise, this response should contain all the responses that should be returned in 200The header field of all entities that are returned.   If the ETag or last-modified header does not match exactly, the client cache should prevent the content returned by the 206 response from being combined with any previously cached content. Any cache that does not support Range and Content-range headers disables caching of 206 of the responses returned. 207 The status code that is extended by WebDAV (RFC 2518), which represents the following message body, will be an XML message and may contain a series of independent response codes, depending on the number of previous child requests. 300 the requested resource has a range of available feedback information, each with its own specific address and browser-driven negotiation information.   The user or browser is able to choose a preferred address to redirect itself. Unless this is a HEAD request, the response should include an entity with a list of resource attributes and addresses so that the user or browser can choose the most appropriate redirect address. The format of this entity is determined by the format defined by Content-type. The browser may automatically make the most appropriate choice based on the format of the response and the ability of the browser itself.   Of course, the RFC 2616 specification does not specify how such an automatic selection should proceed. If the server itself already has the preferred feedback option, the URI of the feedback should be indicated in the location, which the browser may use as the address for automatic redirection. In addition, this response is cacheable unless otherwise specified. 301 the requested resource has been permanently moved to a new location, and any future references to this resource should use one of several URIs returned by this response. If possible, clients that have link editing capabilities should automatically modify the requested address to the address returned from the server.   Unless otherwise specified, the response is cacheable. The new permanent URI should be returned in the location domain of the response.   Unless this is a HEAD request, the response entity should contain a hyperlink to the new URI and a short description.   If this is not a GET or HEAD request, the browser disables automatic redirection unless the user confirms it, because the requested condition may vary. Note: For some browsers that use the http/1.0 protocol, when they send a POST request that gets a 301 response, the next redirect request becomes a Get method. 302 The requested resource is now temporarily responding to requests from different URIs. Because such redirects are temporary, the client should continue to send subsequent requests to the original address. This response is cacheable only if specified in Cache-control or expires.  The new temporary URI should be returned in the location domain of the response.   Unless this is a HEAD request, the response entity should contain a hyperlink to the new URI and a short description.   If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary. Note: Although the RFC 1945 and RFC 2068 specifications do not allow the client to change the method of the request during redirection, many existing browsers treat the 302 response as a 303 response, and use GET to access the URI specified in the location, ignoring the method originally requested. Status Codes 303 and 307 are added to clarify how the server expects the client to react. 303 The response to the current request can be found on another URI, and the client should access that resource in a GET way. This method exists primarily to allow the output of the POST request that is activated by the script to redirect to a new resource. This new URI is not an alternative reference to the original resource. Meanwhile, a 303 response is forbidden to be cached.   Of course, a second request (redirect) may be cached. The new URI should be returned in the location domain of the response.   Unless this is a HEAD request, the response entity should contain a hyperlink to the new URI and a short description. Note: Many http/1.1 versions of previous browsers do not correctly understand the 303 status. If you need to consider the interaction with these browsers, the 302 status code should be competent, because most browsers handle 302 response in the way that the above specification requires the client to handle the 303 response should be done. 304 The server should return this status code if the client sends a conditional GET request and the request has been allowed, and the contents of the document (since the last access or condition of the request) have not changed.   The 304 response suppresses the inclusion of the message body, so it always ends with the first empty line after the message header. The response must contain the following header information: Date, unless the server does not have a clock.   If a server without a clock follows these rules, then the proxy server and the client can add the Date field to the received response header (as specified in RFC 2068), and the caching mechanism will work correctly.   ETag and/or content-location, if the same request should return a 200 response.   Expires, Cache-control, and/or vary, if the value may be different than the value of the other response of the same variable as before. If this response request uses strong cache authentication, the response is notOther entity headers should be included, otherwise (for example, a conditional GET request uses weak cache validation), this response prohibits the inclusion of other entity headers, which avoids inconsistencies between the cached entity content and the updated entity header information.   If a 304 response indicates that the current entity does not have a cache, the caching system must ignore the response and repeat the request with no restrictions. If you receive a 304 response that requires a cache entry to be updated, the cache system must update the entire entry to reflect all the values of the fields that were updated in the response. 305 The requested resource must be accessed through the specified proxy. The URI information for the specified proxy is given in the location domain, and the recipient needs to send a separate request repeatedly to access the resource.   Only the original server can establish a 305 response. Note: There is no explicit 305 response in RFC 2068 to redirect a single request and can only be established by the original server. Ignoring these restrictions can lead to serious security consequences. 306 in the latest version of the specification, the 306 status code is no longer being used. 307 The requested resource is now temporarily responding to requests from different URIs. Because such redirects are temporary, the client should continue to send subsequent requests to the original address.   This response is cacheable only if specified in Cache-control or expires. The new temporary URI should be returned in the location domain of the response. Unless this is a head request, the response entity should contain a hyperlink to the new URI and a short description.   Because some browsers do not recognize the 307 response, you need to add the necessary information above so that users can understand and make access requests to the new URI. If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary. 400 1, the semantic error, the current request can not be understood by the server.   Unless modified, the client should not submit the request repeatedly. 2, the request parameter is wrong. 401 The current request requires user authentication. The response must contain a Www-authenticate information header for the requested resource to ask for user information. The client can repeatedly submit a request that contains the appropriate Authorization header information. If the current request already contains the Authorization certificate, the 401 response indicates that the certificate has been rejected by the server authentication. If the 401 response contains the same authentication query as the previous response, and the browser has tried at least one validation, the browser should show the user the entity information contained in the response because the entity information may contain the relevant diagnosticInterest. See RFC 2617. 402 The status code is reserved for possible future requirements. 403 The server has understood the request, but refuses to execute it. Unlike the 401 response, authentication does not provide any help, and the request should not be repeated. If this is not a HEAD request, and the server wants to be able to explain why the request cannot be executed, then the reason for the rejection should be described within the entity. Of course the server can also return a 404 response if it does not want the client to get any information. 404 the request failed and the requested resource was not found on the server. No information can tell the user whether the situation is temporary or permanent. If the server knows the situation, it should use the 410 status code to tell the old resources because of some internal configuration mechanism problems, has been permanently unavailable, and there is no jump to the address. 404 This status code is widely used when the server does not want to reveal exactly why the request was rejected or if no other appropriate response is available. The request method specified in the 405 request line cannot be used to request the appropriate resource.   The response must return an allow header to indicate a list of request methods that the current resource can accept. Because the Put,delete method writes to resources on the server, most Web servers do not support or do not allow the above request method under the default configuration, and 405 errors are returned for such requests.   406 The content attribute of the requested resource could not satisfy the criteria in the request header, so the response entity could not be generated. Unless this is a HEAD request, the response should return an entity that contains the most appropriate entity attributes and address lists that the user or browser can choose from. The format of the entity is determined by the media type defined in the Content-type header. The browser can make the best choice based on its format and ability. However, the specification does not define any criteria for making such automatic selections. 407 is similar to the 401 response, except that the client must authenticate on the proxy server. The proxy server must return a proxy-authenticate to be used for identity questioning. The client can return a Proxy-authorization message header for verification. See RFC 2617. 408 the request timed out. The client does not complete a request in the time the server is waiting to be sent. The client can submit the request again at any time without making any changes. 409 the request cannot be completed because there is a conflict between the current state of the requested resource and the request. This code is only allowed to be used in situations where the user is considered to be able to resolve the conflict and will resubmit the new request.   The response should contain enough information for the user to discover the source of the conflict. Conflicts usually occur in the handling of PUT requests。 For example, in a version-checking environment, where the version information that accompanies a PUT-submitted modification request for a specific resource conflicts with one of the previous (third-party) requests, the server should return a 409 error informing the user that the request could not be completed. At this point, it is likely that the response entity will contain a diff comparison between the two conflicting versions, so that the user can resubmit the new version after merging. 410 The requested resource is no longer available on the server, and there are no known forwarding addresses. Such a situation should be considered permanent. If possible, a client with link editing should remove all references to this address after obtaining the user's permission. If the server does not know or is unsure whether the condition is permanent, then the 404 status Code should be used.   Unless otherwise noted, the response is cacheable. 410 The purpose of the response is primarily to help the site administrator maintain the site, informing the user that the resource is no longer available, and that the server owner wants all remote connections that point to the resource to be deleted. Such events are common in time-limited and value-added services. Similarly, a 410 response is used to notify the client that a resource that was originally owned by a person is no longer available on the current server site. Of course, it is entirely up to the server owner to mark all permanently unavailable resources as ' 410 Gone ' and how long it will take to keep this tag. 411 The server refuses to accept the request without defining the Content-length header. After adding a valid Content-length header that indicates the body length of the request message, the client can submit the request again. 412 the server failed to satisfy one or more of the prerequisites when validating the prerequisite in the header field of the request. This status code allows the client to set the prerequisites in the requested meta-information (Request header field data) when acquiring the resource, to prevent the request method from being applied to resources other than what it wants. 413 the server refuses to process the current request because the size of the entity data submitted by the request exceeds the scope that the server is willing or able to handle.   In this case, the server can close the connection to prevent the client from continuing to send this request. If this condition is temporary, the server should return a retry-after response header to tell the client how much time it can retry. 414 The requested URI length exceeds the length that the server can interpret, so the server refuses to service the request.   This is rare, and typically includes a form submission that should use the Post method as a Get method, which causes the query string to be too long.   REDIRECT uri "Black Hole", for example, each redirect takes the old Uri as part of the new URI, resulting in a long URI after several redirects. The client is attempting to take advantage of the presence of some serversSecurity vulnerabilities attack the server. This type of server uses a fixed-length buffer to read or manipulate the requested URI, and when the GET parameter exceeds a certain value, a buffer overflow may result, resulting in arbitrary code being executed [1]. A server that does not have such a vulnerability should return a 414 status code. 415 for the currently requested method and the requested resource, the entity submitted in the request is not a supported format in the server and therefore the request is rejected.   416 If the request contains a range request header, and any data range specified in range does not coincide with the current resource's available range, and the request does not define a If-range request header, the server should return a 416 status code. If range uses a byte range, this is the case where the first byte position of all data ranges specified by the request exceeds the current resource's length. The server should also include a Content-range entity header to indicate the length of the current resource while returning a 416 status code. This response is also forbidden to use multipart/byteranges as its content-type. 417 The expected content specified in the request header Expect cannot be satisfied by the server, or the server is a proxy server, it has obvious evidence that the contents of the Expect are not satisfied on the next node of the current route. 421 the number of connections from the current client's IP address to the server exceeds the maximum range of server licenses. Typically, the IP address here refers to the client address seen from the server (such as the user's gateway or proxy server address). In this case, the calculation of the number of connections may involve more than one end user. 422 the number of connections from the current client's IP address to the server exceeds the maximum range of server licenses. Typically, the IP address here refers to the client address seen from the server (such as the user's gateway or proxy server address). In this case, the calculation of the number of connections may involve more than one end user. 422 the request is well-formed, but cannot respond due to a semantic error. (RFC 4918 WebDAV) 423 Locked The current resource is locked. (RFC 4918 WebDAV) 424 causes the current request to fail, such as PROPPATCH, because of an error that occurred in a previous request. (RFC 4918 WebDAV) 425 is defined in the WebDAV advanced collections draft, but does not appear in the WebDAV Sequence set Protocol (RFC 3658). 426 the client should switch to tls/1.0. (RFC 2817) 449 is extended by Microsoft, and on behalf of the request should be retried after performing the appropriate operation. 500 serversAn unexpected condition has been encountered that caused it to be unable to complete the processing of the request. In general, this problem occurs when the server's code is wrong. 501 The server does not support a feature that is required for the current request. When the server does not recognize the requested method and cannot support its request for any resource. 502 An invalid response was received from the upstream server when a request was attempted by a server that is a gateway or agent working. 503 The server is currently unable to process requests due to temporary server maintenance or overloading. This situation is temporary and will be resumed after a certain period of time. If the delay time can be estimated, then the response can include a retry-after header to indicate the delay time.   If this retry-after message is not given, the client should handle it in a manner that handles 500 responses. Note: The presence of a 503 status code does not mean that the server must use it when it is overloaded. Some servers simply want to deny connections to clients.   504 when a server that acts as a gateway or proxy attempts to execute a request, it fails to receive a response from the upstream server (the server that the URI identifies, such as HTTP, FTP, LDAP), or the secondary server (such as DNS) in a timely manner. Note: Some proxy servers return 400 or 500 error when the DNS query times out, 505 the server is not supported, or the HTTP version that is used in the request is denied. This implies that the server cannot or does not want to use the same version as the client. The response should contain an entity that describes why the version is not supported and which protocols the server supports. 506 extended by the Transparent content negotiation agreement (RFC 2295), which represents an internal configuration error on the server: The requested negotiation meta-resource is configured to use itself in transparent content negotiation, so it is not an appropriate focus in a negotiation process. 507 The server cannot store the content necessary to complete the request. The situation is considered to be temporary. The WebDAV (RFC 4918) 509 server reaches the bandwidth limit. This is not an official status code, but is still widely used. 510 the policies needed to get resources are not met. (RFC 2774)

HTTP error 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.