Asp Classic 返回特定的 http 状态码 [英] Asp Classic return specific http status code

查看:25
本文介绍了Asp Classic 返回特定的 http 状态码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从 asp 经典中返回特定的 http 状态代码?

解决方案

 Response.Status = "404 File Not Found"

<块引用>

指定值的字符串服务器的状态行.它是包含在 HTTP 标头中回复.该字符串应包含三位数字代码和一个简短的解释它例如404 文件没有找到".

ASP 响应对象

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

解决方案

 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

这篇关于Asp Classic 返回特定的 http 状态码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆