ASP Status Property
Complete Response object reference manual
The Status property specifies the value of the status line returned by the server.
**Tip:** Use this property to modify the status line returned by the server.
Syntax
response.Status=statusdescription
| Parameters | Description |
|---|---|
| statusdescription | A three-digit number, plus a description of the code, such as 404 Not Found. |
| **Note:** Status values are defined in the HTTP specification. |
Example
<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
Complete Response object reference manual