我需要捕捉mvc应用程序中的错误代码。是否有mvc抛出的错误代码列表?与基本的HttpCodes相同吗?例如,如果类的[Authorized]属性失败,是抛出了401错误代码,还是有什么不同?
I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...