Platform SDK: IIS SDK

      [IIS 5.0] [IIS 5.1] [IIS 6.0]

Response.Status

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.

Syntax

Response.Status = [StatusDescription]

Parameters

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, 301 Move Permanently. Note: you must response.addheader "Location", sURL to complete a 301

Example

The following example sets the response status.

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

Applies To

Response Object

Requirements

Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed

Platform SDK Release: February 2003
What did you think of this topic?
Order a Platform SDK CD