Related Articles

Related Articles

ASP Status Property
  • Last Updated : 31 Jul, 2020

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

filter_none

edit
close

play_arrow

link
brightness_4
code

<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
 response.Status="401 Unauthorized"
 response.Write(response.Status)
 response.End
end if
%>

chevron_right


My Personal Notes arrow_drop_up
Recommended Articles
Page :