Asp Classic 返回特定的 http 状态代码

发布于 2024-08-04 22:13:36 字数 39 浏览 4 评论 0原文

如何从 ASP classic 返回特定的 http 状态代码?

How can I return a specific http status code from an asp classic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟柳画桥 2024-08-11 22:13:36
 Response.Status = "404 File Not Found"

指定值的字符串
服务器的状态行。这是
包含在 HTTP 标头中
回复。该字符串应包含
三位数代码和简介
对其的解释,例如“404 文件不存在
找到了”。

ASP 响应对象

 Response.Status = "404 File Not Found"

A string which specifies the value of
status line of the server. It is
included in HTTP headers of the
response. This string should contain
both three digit code and a brief
explanation for it e.g. "404 File Not
Found".

The ASP Response Object

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文