ASP Status属性

response オブジェクトリファレンスマニュアル

Status属性はサーバーが返す状態行の値を指定します。

ヒント:サーバーが返す状態行を変更するためにこの属性を使用してください。

構文

response.Status=statusdescription
パラメータ 説明
statusdescription

三位数の数字およびコードの説明、例えば404 Not Found。

注釈:状態値はHTTP規範で定義されています。

インスタンス

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

response オブジェクトリファレンスマニュアル