In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what are Response.Status parameters in asp programming". In daily operation, I believe many people have doubts about what Response.Status parameters are in asp programming. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "what are Response.Status parameters in asp programming?" Next, please follow the editor to study!
If you add the above code to the asp page, you will get 404 results when you visit the page; the browser prompts that the page does not exist or has been deleted
If you use the following code in the header of the file:
1.Response.Status = "403Forbidden"
2.Response.End
The result you see on the web page is:
You do not have permission to view this page
You may not have permission to view this directory or web page with the credentials you provided.
If you are sure you can view the directory or web page, try contacting the website using the email address or phone number listed on the xxx home page.
You can click search to find information on Internet.
HTTP error 403-access prohibited
InternetExplorer
The following is a list of status codes in the http protocol:
Status code status information code meaning
100Continue's initial request has been accepted and the customer should continue to send the rest of the request.
The 101SwitchingProtocols server will convert to another protocol in compliance with the customer's request
The 200OK is fine, and the response documents for GET and POST requests follow.
The 201Created server has created the document, and the Location header gives its URL.
202Accepted has accepted the request, but the processing has not been completed.
The 203Non-AuthoritativeInformation document has been returned normally, but some response headers may be incorrect because a copy of the document is used
There are no new documents in 204NoContent, and browsers should continue to display the original documents. This status code is useful if the user refreshes the page regularly and Servlet can determine that the user document is new enough.
205ResetContent has no new content, but the browser should reset what it displays. Used to force the browser to clear the form input
The 206PartialContent client sends a GET request with a Range header, and the server completes it.
The document requested by the 300MultipleChoices customer can be found in multiple locations, which are listed in the returned document. If the server wants to make a priority, it should be indicated in the Location response header.
What are the Response.Status parameters in asp programming
The document requested by the 301MovedPermanently customer is elsewhere, the new URL is given in the Location header, and the browser should automatically access the new URL.
302Found is similar to 301, but the new URL should be seen as a temporary replacement, not permanent. Note that the corresponding status information in HTTP1.0 is "Moved"
303SeeOther is similar to 301 POST,Location 302, except that if the original request is a redirect target document specified by the GET header, it should be extracted through GET.
The 304NotModified client has buffered documents and issues a conditional request (typically providing an If-Modified-Since header to indicate that the customer only wants to update the document on a specified date). The server tells the customer that the original buffered document can continue to be used.
The document requested by the 305UseProxy customer should be extracted through the proxy server specified in the Location header
307TemporaryRedirect is the same as 302 (Found). Many browsers will mistakenly redirect in response to a 302 reply, even if the original request is POST, even if it can only be redirected when the reply to the POST request is
It takes 303 to redirect. For this reason, HTTP1.1 added 307 to make it clear that several status codes are more clear: when a 303 reply occurs, the browser can follow the redirected GET and POST requests; if it is a 307 reply, the browser can only follow the redirection of the GET request.
A syntax error occurred in the 400BadRequest request.
An 401Unauthorized customer attempted to access a password-protected page without authorization. A WWW-Authenticate header is included in the reply, and the browser displays the user name / password dialog box, and then issues the request again after filling in the appropriate Authorization header.
The 403Forbidden resource is not available. The server understands the customer's request but refuses to process it. It is usually caused by permission settings for files or directories on the server.
404NotFound could not find the resource at the specified location. This is also a common response.
The 405MethodNotAllowed request method (GET, POST, HEAD, DELETE, PUT, TRACE, etc.) does not apply to the specified resource.
The resource specified by 406NotAcceptable has been found, but its MIME type is not compatible with that specified by the customer in the Accpet header
407Proxy is similar to 401, indicating that the customer must first be authorized by the proxy server.
408RequestTimeout the customer has not made any request during the waiting time for the license of the server. The customer can repeat the same request later.
409Conflict is usually associated with PUT requests. The request cannot succeed because the request conflicts with the current state of the resource.
The document requested by 410Gone is no longer available, and the server does not know which address to redirect to. It differs from 404 in that returning 407 indicates that the document has permanently left the specified location, while 404 indicates that the document is not available for unknown reasons.
The 411LengthRequire server cannot process the request unless the customer sends a Content-Length header.
Some prerequisites specified in the 412PreconditionFailed request header failed
The size of the 413RequestEntityTooLarge target document exceeds the size that the server is currently willing to process. If the server thinks it can process the request later, it should provide a Retry-After header
414RequestURITooLongURI is too long.
The 416RequestedRangeNotSatisfiable server cannot satisfy the Range header specified by the customer in the request.
The 500InternalServerError server encountered an unexpected situation and was unable to complete the customer's request.
The 501NotImplemented server does not support the functionality required to implement the request. For example, the customer makes a PUT request that the server does not support.
When the 502BadGateway server acts as a gateway or proxy, it accesses the next server in order to complete the request, but the server returns an illegal reply.
The 503ServiceUnavailable server failed to answer due to maintenance or overload. For example, Servlet might return 503 if the database connection pool is full. The server can provide a Retry-After header when it returns 503.
504GatewayTimeout is used by a server that acts as a proxy or gateway, indicating that a reply cannot be obtained from a remote server in a timely manner.
The 505HTTPVersionNotSupported server does not support the HTTP version specified in the request.
What is more valuable in the actual process is the 301amp 302 redirection:
1.Response.Status = "301" or302
2.Response.AddHeader "Location", "url"
3.Response.End
At this point, the study of "what are the Response.Status parameters in asp programming" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.