The ASP Status Property is used to specify the value of the status of the asp page which is returned by the user. This Property is also used to change the status of the asp page.
Syntax:
response.Status=statusdescription
Parameter Values: This property accepts a single value as mentioned above and described below:
- statusdescription: It represents a three-digit number and specifies the description of the code.
Note: Error 404 means page not found.
Example: Below code illustrates the ASP Status Property.
HTML
<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
|
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
31 Jul, 2020
Like Article
Save Article