ASP 狀態屬性
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 %>