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 物件參考