401.2状态code自定义页面 [英] 401.2 status code custom page

查看:117
本文介绍了401.2状态code自定义页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET自定义错误页不工作的在 401.2状态code

ASP.NET Custom Error page not working for the 401.2 status code.

<customErrors mode="On" defaultRedirect="401.htm">
      <error statusCode="401" redirect="401.htm"></error>
</customErrors>

有没有为其他状态codeS的任何问题。我该如何处理这种状况code?

There is not any problem for the other status codes. How can I handle this status code?

推荐答案

添加子状态code =2到错误配置。

Add subStatusCode="2" to the error config.

这篇关于401.2状态code自定义页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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