TUTORIALBackendFETCHED

ASP Status 属性

ASP Status 属性 完整的 Response 对象参考手册 Status 属性规定由服务器返回的状态行的值。 提示:请使用此属性来修改由服务器返回的状态行。 语法 response.Status=statusdescription 参数 描述 statusdescription 三位数的数字,以及代码的描述,比如 404 Not Found 。注意:状态值是在 HTTP 规范中定..

Updated 7/16/2026

Tutorial detail pages default to noindex.

ASP Status 属性


Response 对象参考手册 完整的 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 对象参考手册 完整的 Response 对象参考手册