ASP Status Property

Manuel de référence de l'objet response

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
Parameter Description
statusdescription

Three-digit numbers, as well as the description of the code, such as 404 Not Found.

Note:The status value is defined in the HTTP specification.

Instance

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

Manuel de référence de l'objet response