Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Web.Mvc/HttpNotFoundResult.cs')
-rw-r--r--src/System.Web.Mvc/HttpNotFoundResult.cs18
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)
+ {
+ }
+ }
+}