In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares with you is about the HTTP status code and its definition how to parse Ajax to catch callback errors, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
HTTP status code and its definition parsing Ajax capture callback error reference
The status line contains the HTTP version, the status code, and a short description corresponding to the status code. In most cases, all answering headers except Content-Type are optional. However, Content-Type is required, which describes the MIME type of the subsequent document. Although most responses contain a document, there are some that do not, such as responses to HEAD requests that are never accompanied by a document. There are many status codes that are actually used to identify a failed request, and these responses do not contain documentation (or just a short error message description).
When a user tries to access content on a server that is running Internet Information Services (IIS) through HTTP, IIS returns a numeric code indicating the status of the request. The status code can indicate whether a specific request was successful or not, and it can also reveal the exact reason why the request failed.
1xx-Information Tip
These status codes represent temporary responses. The client should be prepared to receive one or more 1xx responses before receiving a regular response. 100-go on.
101-switch protocol.
2xx-successful
This type of status code indicates that the server successfully accepted the client request.
200-OK. The client request was successful.
201-created.
202-accepted.
203-non-authoritative information.
204-No content.
205-resets the content.
206-partial content.
3xx-redirect
The client browser must do more to implement the request. For example, a browser may have to request a different page on the server or repeat the request through a proxy server.
302-the object has moved.
304-not modified.
307-temporary redirection.
4xx-client error
An error has occurred and there seems to be a problem with the client. For example, the client requests a page that does not exist and the client does not provide valid authentication information.
400-wrong request.
401-access denied. IIS defines a number of different 401 errors that indicate a more specific cause of the error. These specific error codes are displayed in the browser, but not in the IIS log:
401.1-login failed.
401.2-the server configuration caused the login failure.
401.3-not authorized due to resource restrictions imposed by ACL.
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 specific to IIS 6. 0.
Forbidden access: IIS defines many different 403 errors that indicate a more specific cause of the error:
403.1-Executive access is prohibited.
403.2-read access is prohibited.
403.3-write access is prohibited.
403.4-request SSL.
403.5-SSL 128 is required.
403.6-the IP address is rejected.
403.7-client certificate is required.
403.8-site access is denied.
403.9-too many users.
403.10-invalid configuration.
403.11-password change.
403.12-access to the mapping table is denied.
403.13-the client certificate is revoked.
403.14-reject directory list.
403.15-client access permission exceeded.
403.16-the client certificate is not trusted or invalid.
403.17-the client certificate has expired or is not yet valid.
403.18-the requested URL cannot be executed in the current application pool. This error code is specific to IIS 6. 0.
403.19-CGI. 1 cannot be executed for clients in this application pool. This error code is specific to IIS 6. 0.
403.20-Passport login failed. This error code is specific to IIS 6. 0.
404-not found.
404.0-(none)? No files or directories were found.
404.1-the Web site cannot be accessed on the requested port.
404.2-the Web service extension locking policy blocks this request.
The 404.3-MIME mapping policy blocks this request.
405-the HTTP predicate used to access this page is not allowed (method is not allowed)
406-the client browser does not accept the MIME type of the requested page.
407-proxy authentication is required.
412-prerequisites failed.
413? The request entity is too large.
414-request URI is too long.
415? Unsupported media type.
416? The requested scope cannot be met.
417? Execution failed.
423? Lock error.
5xx-Server error
The server was unable to complete the request because it encountered an error.
500-Internal server error.
500.12-the application is busy restarting on the Web server.
500.13-the Web server is too busy.
500.15-Direct request for Global.asa is not allowed.
500.16? The UNC authorization credentials are incorrect. This error code is specific to IIS 6. 0.
500.18? The URL authorization store cannot be opened. This error code is specific to IIS 6. 0.
500.100-Internal ASP error.
501-the header value specifies the unimplemented configuration.
502-the Web server received an invalid response when used as a gateway or proxy server. 502.1-the CGI application timed out.
502.2-an error occurred in the CGI application.
503-the service is not available. This error code is specific to IIS 6. 0.
504-the gateway timed out.
Version 505-HTTP is not supported.
Common HTTP status codes and their causes
200-success. This status code indicates that IIS successfully processed the request.
304-not modified. The document requested by the client is already in its cache and has not been modified since the cache. The client uses a cached copy of the document instead of downloading the document from the server.
401.1-login failed. The login attempt was unsuccessful, possibly because the user name or password is invalid.
401.3-not authorized due to resource restrictions imposed by ACL. This indicates that there is a NTFS permission problem. This error can occur even if you have the appropriate permissions on the file you are trying to access.
403.1-Executive access is prohibited.
Here are two common reasons for this error message:
You do not have sufficient enforcement permission. For example, this error message appears if the directory permission of the ASP page you are trying to access is set to none, or if the directory permission of the CGI script you are trying to execute is allow scripts only. To modify the execution permissions, right-click the directory in the Microsoft Management console (MMC), and then click the properties and directory tabs to ensure that the appropriate execution permissions are set for the content you are trying to access.
You did not set the script mapping of the file type you are trying to execute to identify the predicates used (for example, GET or POST). To verify this, right-click the directory in MMC, click the properties, click the directory tab, click the configuration, and then verify that the script mapping for the appropriate file type is set to the verbs that are allowed to be used.
403.2-read access is prohibited. Verify that IIS is set to allow read access to directories. In addition, if you are using the default file, verify that the file exists.
403.3-write access is prohibited. Verify that the IIS and NTFS permissions are set to grant write access to the directory.
403.4-request SSL. Disable the require secure channel option, or use HTTPS instead of HTTP to access the page.
403.5-SSL 128 is required. Disable the option that requires 128-bit encryption, or use a browser that supports 128-bit encryption to view the page.
403.6-the IP address is rejected. You have configured your server to deny access to your current IP address.
403.7-client certificate is required. You have configured your server to require client authentication certificates, but you do not have a valid client certificate installed.
403.8-site access is denied. You have set domain name restrictions for the domain you use to access the server.
403.9-too many users. The number of users connected to this server exceeds the connection limit you set.
Note: Microsoft Windows 2000 Professional and Microsoft Windows XP Professional automatically set a limit of up to 10 connections on IIS. You cannot change this limit.
403.12-access to the mapping table is denied. The page you are visiting requires a client certificate, but the user ID that maps to your client certificate has been denied access to the file.
404-not found. This error occurs because the file you are trying to access has been removed or deleted. This error also occurs if you try to access a file with a limited extension after installing the URLScan tool. In this case, the word "Rejected by URLScan" appears in the log file entry of the request.
500-Internal server error. Many server-side errors can cause this error message. The event Viewer log contains more detailed reasons for the error. In addition, you can disable the friendly HTTP error message to receive a detailed error description.
500.12-the application is being restarted. This means that you are trying to load the ASP page while IIS is restarting the application. When the page is refreshed, this information disappears. If this message appears again after refreshing the page, it may be that the antivirus software is scanning the Global.asa file.
500-100.ASP-ASP error. This error message appears if the ASP page you are trying to load contains an error code. To get more accurate error messages, disable friendly HTTP error messages. By default, this error message is enabled only on the default Web site.
502-Gateway error. This error message appears if the CGI script you are trying to run does not return a valid set of HTTP headers.
The above is the HTTP status code and its definition of how to parse Ajax to catch callback errors. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.