httpContext.Response.SubStatusCode 的用途是什么?
httpContext.Response.SubStatusCode
的用途是什么?该值是 IIS 集成模式管道的一部分。
What is httpContext.Response.SubStatusCode
for? this value is part of the IIS integration mode pipeline.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
子状态是主状态代码中的一个类别,它提供了有关引发主状态代码的条件性质的更多信息。
例如,错误 401(未经授权)有多个子状态代码:
401.1 - 登录失败。
401.2 - 由于服务器配置导致登录失败。
401.3 - 由于资源上的 ACL 而未经授权。
401.4 - 过滤器授权失败。
401.5 - ISAPI/CGI 应用程序授权失败。
IIS 7 中 HTTP 状态和子状态代码的完整参考是 这里
Substatus is a category within the main status code which provides a little more information about the nature of the condition raising the main status code.
For example, error 401 (unauthorised) has several substatus codes:
401.1 - Logon failed.
401.2 - Logon failed due to server configuration.
401.3 - Unauthorized due to ACL on resource.
401.4 - Authorization failed by filter.
401.5 - Authorization failed by ISAPI/CGI application.
The full reference for HTTP status and substatus codes in IIS 7 is here
它为您提供 http 响应的状态代码。
有关更多详细信息,请检查 HttpResponse.SubStatusCode 和使用跟踪对失败的请求进行故障排除在 IIS 7 中
It gives you status code of the http response.
For more details check HttpResponse.SubStatusCode and Troubleshooting Failed Requests Using Tracing in IIS 7