HTTP response code
1xx-Information prompt
These status codes indicate temporary responses. Before receiving a regular response, the client should be prepared to receive one or more 1xx responses.
· The initial 100-Continue request has been accepted, and the customer should Continue to send the rest of the request. [1.1]
· 101-Switching Protocols server converts client-compliant requests to another protocol. [1.1]
2xx-success
This type of Status Code indicates that the server successfully accepts client requests.
· 200-OK: Everything works normally. The response documents for GET and POST requests follow.
· The 201-Created server has Created a document and the Location header provides its URL.
· 202-Accepted has Accepted the request, but the processing has not been completed yet.
· The 203-Non-Authoritative Information document has been normally returned, but some response headers may be incorrect because the document is copied and Non-Authoritative. [1.1]
· No new document exists in 204-No Content. The browser should continue to display the original document. This status code is useful if the user regularly refreshes the page and the Servlet can determine that the user document is new enough.
· 205-Reset Content has no new Content, but the browser should Reset the Content displayed by it. Used to force the browser to clear the input content of the form. [1.1]
· 206-Partial Content the client sends a GET request with a Range header, and the server completes the request. [1.1]
3xx-redirection
The client browser must perform more operations to implement the request. For example, the browser may have to request different pages on the server or repeat the request through the proxy server.
· 300-Multiple Choices the document requested by the customer can be found in Multiple locations, which are listed in the returned documents. If the server needs to give priority, it should be specified in the Location response header.
· 301-Moved Permanently the document requested by the customer is elsewhere. The new URL is provided in the Location header and the browser should automatically access the new URL.
· 302-Found is similar to 301, but the new URL should be treated as a temporary alternative, rather than permanent. Note that the corresponding status information in HTTP1.0 is "Moved Temporatily ". When this 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 be replaced with 301 sometimes. For example, if the browser mistakenly requests http: // host /~ If the user (with a slash missing), some servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only when the original request is GET. See 307.
· 303-See Other is similar to 301/302. The difference is that if the original request is POST, the redirection target document specified by the Location header should be extracted through GET. [1.1]
· The 304-Not Modified client has a buffered document and sends a conditional request (generally, the If-Modified-Since header is provided to indicate that the customer only wants to update the document on a specified date ). The server tells the customer that the original buffer documentation can still be used.
· 305-Use the Proxy client request document should be extracted by the Proxy server specified in the Location header. [1.1]
· 307-Temporary Redirect and 302 (Found) are the same. Many browsers mistakenly respond to the 302 response for redirection. Even if the original request is POST, it can only be redirected when the POST request actually responds to 303. For this reason, HTTP 1.1 adds 307 to clear the region code in several states: When a 303 response occurs, the browser can follow the redirected GET and POST requests; if a 307 response occurs, the browser can only follow the redirection to get requests. [1.1]
4xx-client Error
The client seems to be faulty when an error occurs. For example, the client does not provide valid authentication information for a page that does not exist in a request.
· A syntax error occurs in the 400-Bad Request.
· 401-Unauthorized access is denied. The customer tries to access the password-protected page without authorization. The response contains a WWW-Authenticate header. the browser displays the username/password dialog box accordingly, and then sends a request again after entering the appropriate Authorization header. IIS defines many different 401 errors, which indicate more specific error causes. These specific error codes are displayed in the browser but not in the IIS log:
· 401.1-Logon Failed.
· 401.2-login failed due to server configuration.
· 401.3-the ACL is not authorized due to resource restrictions.
· 401.4-filter authorization failed.
· 401.5-An error occurred while authorizing the ISAPI/CGI application.
· 401.7-the access is rejected by the URL Authorization Policy on the Web server. This error code is dedicated to IIS 6.0.
· 403-Forbidden resources are unavailable. The server understands the customer's request, but rejects the request. This is usually caused by permission settings for files or directories on the server. Forbidden access: IIS defines many different 403 errors, which indicate more specific error causes:
· 403.1-the execution access is forbidden.
· 403.2-Read access is forbidden.
· 403.3-write access is forbidden.
· 403.4-require SSL.
· 403.5-requires SSL 128.
· 403.6-the IP address is rejected.
· 403.7-client certificate required.
· 403.8-site access is denied.
· 403.9-too many users.
· 403.10-the configuration is invalid.
· 403.11-password change.
· 403.12-access to the ing table is denied.
· 403.13-the client certificate is revoked.
· 403.14-reject the directory list.
· 403.15-exceeds the client access permission.
· 403.16-the client certificate is untrusted 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 dedicated to IIS 6.0.
· 403.19-CGI cannot be executed for clients in this application pool. This error code is dedicated to IIS 6.0.
· 403.20-logon to Passport failed. This error code is dedicated to IIS 6.0.
· 404-Not Found cannot find the resource at the specified position. This is also a common response.
· 404.0-(none)-No file or directory found.
· 404.1-unable to access the Web site on the requested port.
· 404.2-the Web service extended locking policy blocks this request.
· 404.3-the MIME ing policy blocks this request.
· 405-Method Not Allowed request methods (GET, POST, HEAD, DELETE, PUT, TRACE, etc.) are Not applicable to specified resources, HTTP predicates used to access this page are not allowed (methods are not allowed ). [1.1]
· The resource specified by 406-Not Acceptable has been found, but its MIME type is incompatible with the one specified by the customer in the Accpet header. The client browser does Not accept the MIME type of the requested page. [1.1]
· 407-Proxy Authentication Required requires Proxy Authentication, similar to 401, indicating that the customer must first be authorized by the Proxy server. [1.1]
· 408-Request Timeout the client has not sent any Request within the waiting time permitted by the server. The customer can repeat the same request later. [1.1]
· 409-Conflict is usually related to PUT requests. The request cannot be successful because the request conflicts with the current status of the resource. [1.1]
· The document requested by 410-Gone is no longer available, and the server does not know which address to redirect. It differs from 404 in that if 407 is returned, the document permanently leaves the specified position, and 404 indicates that the document is unavailable for unknown reasons. [1.1]
· The 411-Length Required server cannot process the request unless the client sends a Content-Length header. [1.1]
· 412-Precondition Failed to specify certain preconditions in the Failed request header. [1.1]
· The size of the 413-Request Entity Too Large target document exceeds the size that the server is willing to process. If the server thinks it can process the request later, it should provide a Retry-After header. [1.1]
· 414-Request URI Too Long URI is Too Long. [1.1]
· 415-unsupported media type.
· 416-Requested Range Not Satisfiable the server cannot meet the Range header specified by the customer in the request. [1.1]
· 417-execution failed.
· 423-locking error.
5xx-Server Error
The server cannot complete the request because of an error.
· 500-the Internal Server Error Server encounters unexpected circumstances and cannot complete the customer's request.
· 500.12-the application is busy restarting on the Web server.
· 500.13-the Web server is too busy.
· 500.15-Direct Request to Global. asa is not allowed.
· The 500.16-UNC authorization credential is incorrect. This error code is dedicated to IIS 6.0.
· 500.18-the URL-authorized storage cannot be opened. This error code is dedicated to IIS 6.0.
· 500.100-Internal ASP error.
· The 501-Not Implemented server does Not support the functions required to implement the request. The header value specifies the unimplemented configuration. For example, the customer sends a PUT request not supported by the server.
· When the 502-Bad Gateway server acts as a Gateway or proxy, the server returns an invalid response to access the next server to complete the request. In other words, the Web server receives an invalid response when it is used as a gateway or proxy server.
· 502.1-CGI application timeout.
· 502.2-CGI application error.
· 503-Service Unavailable Service is Unavailable, and the server fails to respond due to maintenance or overload. For example, Servlet may return 503 when the database connection pool is full. When the server returns 503, A Retry-After header can be provided. This error code is dedicated to IIS 6.0.
· 504-Gateway Timeout Gateway times out and is used by the server acting as a proxy or Gateway, indicating that the remote server cannot receive a response in a timely manner. [1.1]
· Server 505-HTTP Version Not Supported does Not support the HTTP Version specified in the request. [1.1]