Latest web development tutorials

ASP Status property

Response Object Reference Complete Response Object Reference

The value returned by the server status line Status attribute specifies.

Tip: Use this property to modify the status line returned by the server.

grammar

response.Status=statusdescription

参数 描述
statusdescription 三位数的数字,以及代码的描述,比如 404 Not Found 。
注意:状态值是在 HTTP 规范中定义的。

Examples

<%
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 Object Reference Complete Response Object Reference