httpContext.Response.SubStatusCode 的用途是什么?

发布于 2024-09-02 17:14:49 字数 81 浏览 7 评论 0原文

httpContext.Response.SubStatusCode 的用途是什么?该值是 IIS 集成模式管道的一部分。

What is httpContext.Response.SubStatusCode for? this value is part of the IIS integration mode pipeline.

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

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

发布评论

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

评论(2

近箐 2024-09-09 17:14:49

子状态是主状态代码中的一个类别,它提供了有关引发主状态代码的条件性质的更多信息。

例如,错误 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

記柔刀 2024-09-09 17:14:49

它为您提供 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

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