All kinds of HTTP request status (status) and its meaning detailed resolution _win server

Source: Internet
Author: User
Tags error code

When a Web server responds to a request from a browser or other client, its answer generally consists of the following parts: A status row, several replies

Header, a blank line, content document. Here is one of the simplest answers:

The status line contains the HTTP version, status code, and a brief description of the status code. In most cases, in addition to the Content-type

All of the answer headers outside are optional. However, Content-type is required, which describes the MIME type of the subsequent document. Although most responses

Contains a single document, but there are some that are not included, such as a response to a head request that never comes with a document. There are many status codes that actually use

To identify a failed request that does not contain a document (or contains only a brief error message description).

When a user tries to access content on a server that is running Internet information Services (IIS) over HTTP, IIS returns a

A numeric code that represents the state of the request. The status code can indicate whether a specific request has been successful, and can also reveal the exact cause of the request failure.

1XX-Information Tips

These status codes represent a temporary response. The client should be prepared to receive one or more 1xx responses before receiving a regular response.
· 100-continue the initial request has been accepted and the customer should continue to send the remainder of the request. (HTTP 1.1 new)
· 101-switching Protocols server converts customer requests to another protocol (HTTP 1.1 new)

2XX-Success

This type of status code indicates that the server successfully accepted the client request.
· 200-ok everything is fine, the answer document for Get and post requests follows.
· The 201-created server has created the document, and the location header gives its URL.
· 202-accepted has accepted the request, but processing has not yet completed.
· 203-non-authoritative information The document has returned normally, but some of the answer headers may not be correct because the use of the

is a copy of the document, not authoritative information (HTTP 1.1 new).
· 204-no Content does not have a new document, the browser should continue to display the original document. If the user periodically refreshes the page, the

The servlet can determine that the user's document is new enough, and this status code is useful.
· 205-reset content has no new contents, but the browser should reset what it displays. Used to force the browser to erase form loss

into the content (HTTP 1.1 new).
· 206-partial Content customer sent a GET request with a range header, and the server completed it (HTTP 1.1 new).

3xx-redirect

The client browser must take more action to implement the request. For example, a browser might have to request a different page on the server, or

The proxy server repeats the request.
· 300-multiple choices Client-requested documents can be found in multiple locations, which are already listed in the returned document. Such as

If the server wants to make a preference, it should be indicated in the location answer header.
· 301-moved permanently customer requested document elsewhere, the new URL is given in the location header, and the browser should automatically

To access the new URL.
· 302-found is similar to 301, but the new URL should be treated as a temporary alternative, not permanent. Note that in the HTTP1.0

The status information should be "moved temporatily". When the status code appears, the browser can automatically access the new URL, so it is a

Very useful status code. Note that this status code can sometimes be replaced with 301. For example, if the browser incorrectly requests

Http://host/~user (a trailing slash is missing), some servers return 301, and some return 302. Strictly speaking, we can only leave

The browser will automatically redirect only if the original request is get. Please see 307.
· 303-see is similar to 301/302, except that if the original request was a post,location specified by the head

The document should be extracted via get (HTTP 1.1 new).
· The 304-not Modified client has buffered documentation and has issued a conditional request (typically to provide if-modified-since

The header represents a document that the customer only wants to update than the specified date. The server tells the customer that the previously buffered document can continue to be used.
· 305-use Proxy Client-requested documents should be extracted via the proxy server indicated by the location header (HTTP 1.1 new).
· 307-temporary Redirect and 302 (Found) are the same. Many browsers will incorrectly respond to 302 responses for redirection, even if

The original request is post, even if it can actually be redirected only if the POST request response is 303. For this reason, the HTTP 1.1 new

increased by 307 in order to clear the area for a few status codes: When a 303 response occurs, the browser can follow the redirected get and post requests

; If it is a 307 answer, the browser can only follow the redirection of the GET request. (HTTP 1.1 new)

4xx-Client Error

An error occurred and the client appears to have a problem. For example, a client requests a page that does not exist, and the client does not provide valid authentication information.

· A syntax error occurred in the 400-bad request.

· 401-unauthorized access was denied and the customer attempted to access a password-protected page without authorization. A www-is included in the answer

Authenticate header, the browser displays the user name/password dialog Accordingly, and then sends it again after completing the appropriate authorization header

Please. IIS defines a number of different 401 errors that indicate a more specific cause of the error. These specific error codes are explicitly in the browser

, but not shown in the IIS log:
· 401.1-Login failed.
· 401.2-The server configuration caused the login to fail.
· 401.3-Authorization is not granted due to ACL restrictions on resources.
· 401.4-Filter Authorization failed.
· 401.5-ISAPI/CGI application authorization failed.
· 401.7– access is denied by the URL authorization policy on the WEB server. This error code is private to IIS 6.0.

· 403-forbidden resource is not available. The server understands the customer's request, but refuses to process it. Usually because of a file or directory on the server

Caused by the permissions setting of the. Prohibit access: IIS defines a number of different 403 errors that indicate a more specific cause of the error:
· 403.1-execution access is prohibited.
· 403.2-Read access is forbidden.
· 403.3-Write access is forbidden.
· 403.4-Require SSL.
· 403.5-Requires SSL 128.
· The 403.6-IP address was rejected.
· 403.7-Client certificate required.
· 403.8-site access is denied.
· 403.9-Excessive number of users.
· 403.10-Configuration is not valid.
· 403.11-Password change.
· 403.12-access to the mapping table is denied.
· 403.13-The client certificate was revoked.
· 403.14-Deny directory list.
· 403.15-Client access permission exceeded.
· 403.16-Client certificate is not trusted or invalid.
· 403.17-The client certificate has expired or has not yet taken effect.
· 403.18-The requested URL cannot be executed in the current application pool. This error code is private to IIS 6.0.
· 403.19-CGI cannot be performed for clients in this application pool. This error code is private to IIS 6.0.
· 403.20-passport Login failed. This error code is private to IIS 6.0.

· 404-not Found cannot find a resource at the specified location. This is also a common answer.
· 404.0-(None) – No files or directories found.
· 404.1-The Web site cannot be accessed on the requested port.
· The 404.2-web service extension lockout policy blocks this request.
· The 404.3-mime mapping policy blocks this request.

· 405-method not allowed request method (GET, POST, head, DELETE, put, trace, etc.) is not appropriate for the specified resource

HTTP predicates used to access this page are not allowed (methods are not allowed) (HTTP 1.1 new)
· 406-not acceptable The specified resource has been found, but its MIME type is incompatible with the customer specified in the Accpet header, guest

The user-side browser does not accept the MIME type of the requested page (HTTP 1.1 is new).
· 407-proxy authentication Required requires proxy authentication, similar to 401, which means that the customer must first pass the agent

The authorization of the server. (HTTP 1.1 new)
· 408-request Timeout The customer has not made any requests for the duration of the server's license. Customers can weigh in later

Duplicate the same request. (HTTP 1.1 new)
· 409-conflict are usually associated with put requests. The request cannot succeed because the request and the current state of the resource are conflicting. (HTTP

1.1 new)
· 410-gone the requested document is no longer available and the server does not know which address should be redirected to. It's different from 404.

Is that the return of 407 indicates that the document left the specified location permanently, and 404 indicates that the document is not available because of an unknown reason. (HTTP 1.1 new)
· 411-length Required server cannot process requests unless the client sends a content-length header. (HTTP 1.1 new)
· Some prerequisites specified in the 412-precondition Failed request header failed (HTTP 1.1 new).
· 413–request Entity Too Large the size of the target document exceeds the size that the server is currently willing to handle. If the server thinks

If you can handle the request later, you should provide a Retry-after header (HTTP 1.1 new).
· 414-request URI Too Long URI (HTTP 1.1 new).
· 415– media type that is not supported.
· The 416–requested range not satisfiable server does not meet the range header specified by the customer in the request. (HTTP 1.1

New
· 417– execution failed.
· 423– the locked error.

5XX-Server Error

The server was unable to complete the request due to an error encountered.

· The 500-internal server Error servers encountered unexpected conditions and could not complete the customer's request.

· 500.12-The application is busy restarting on the WEB server.
· The 500.13-web server is too busy.
· 500.15-Direct Request Global.asa is not allowed.
· The 500.16–unc authorization credentials are incorrect. This error code is private to IIS 6.0.
· The 500.18–url authorization store cannot be opened. This error code is private to IIS 6.0.
· 500.100-Internal ASP error.

· The 501-not implemented server does not support the functionality required to implement the request, and the header value specifies the not implemented configuration. For example, guest

The user issued a put request that the server does not support.

· The 502-bad gateway server, as a gateway or proxy, accesses the next server in order to complete the request, but the server returns

An illegal response. It is also said that the Web server received an invalid response when it was used as a gateway or proxy server.

· The 502.1-cgi application timed out.
· Error 502.2-cgi application.

· The 503-service unavailable service is unavailable and the server fails to respond due to maintenance or overload. For example, a servlet might

Returns 503 if the database connection pool is full. The server can provide a retry-after header when it returns 503. This error code is

Dedicated to IIS 6.0.

· When 504-gateway Timeout network Guan Shu, it is used by a server acting as a proxy or gateway, indicating that it cannot be obtained from the remote server in time

Have to answer. (HTTP 1.1 new).

· The 505-http version not supported server does not support HTTP versions as specified in the request. (HTTP 1.1 new).

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.