linux-packaging-mono/mcs/class/System.Web.Mvc3/Mvc/HttpUnauthorizedResult.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
644 B
C#

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