ASP Statusプロパティ


Response 对象参考手册Response オブジェクト完全リファレンス

Status プロパティは、サーバーによって返されるステータス行の値を指定します。

ヒント:このプロパティを使用して、サーバーから返されるステータス行を変更してください。

構文

response.Status=statusdescription

パラメータ 説明
statusdescription 3桁の数字とコードの説明。例: 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 对象参考手册Response オブジェクト完全リファレンス その他の拡張