Export (0) Print
Expand All

Response.Status

IIS 6.0

The Status property specifies the value of the status line returned by the server; you can use it to modify the status line. Status values are defined in the HTTP specification.

Response.Status =[StatusDescription]

StatusDescription

A string that consists of both a three-digit number that indicates a status code and a brief explanation of that code. For example, 310 Move Permanently.

The following example sets the response status.


<% Response.Status = "401 Unauthorized" %> 


Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

Show:
© 2014 Microsoft