diff options
Diffstat (limited to 'src/System.Web.Mvc/HttpNotFoundResult.cs')
-rw-r--r-- | src/System.Web.Mvc/HttpNotFoundResult.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/System.Web.Mvc/HttpNotFoundResult.cs b/src/System.Web.Mvc/HttpNotFoundResult.cs new file mode 100644 index 00000000..9b749ace --- /dev/null +++ b/src/System.Web.Mvc/HttpNotFoundResult.cs @@ -0,0 +1,18 @@ +using System.Net; + +namespace System.Web.Mvc +{ + public class HttpNotFoundResult : HttpStatusCodeResult + { + public HttpNotFoundResult() + : this(null) + { + } + + // NotFound is equivalent to HTTP status 404. + public HttpNotFoundResult(string statusDescription) + : base(HttpStatusCode.NotFound, statusDescription) + { + } + } +} |