Open In App

ASP Status Property

Last Updated : 31 Jul, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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
%>



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads