ASPステータスプロパティ
❮完全な応答オブジェクトリファレンス
Statusプロパティは、サーバーから返されるステータス行の値を指定します。
ヒント:このプロパティを使用して、サーバーから返されるステータス行を変更します。
構文
response.Status=statusdescription
Parameter | Description |
---|---|
statusdescription | A three-digit number and a description of that code, like
404 Not Found. Note: Status values are defined in the HTTP specification. |
例
<%
ip=request.ServerVariables("REMOTE_ADDR")
if ip<>"194.248.333.500" then
response.Status="401 Unauthorized"
response.Write(response.Status)
response.End
end if
%>
❮完全な応答オブジェクトリファレンス