1 namespace System.Web.Mvc {
3 public class HttpUnauthorizedResult : HttpStatusCodeResult {
5 // HTTP 401 is the status code for unauthorized access. Other code might
6 // intercept this and perform some special logic. For example, the
7 // FormsAuthenticationModule looks for 401 responses and instead redirects
8 // the user to the login page.
9 private const int UnauthorizedCode = 401;
11 public HttpUnauthorizedResult()
15 public HttpUnauthorizedResult(string statusDescription)
16 : base(UnauthorizedCode, statusDescription) {