aboutsummaryrefslogtreecommitdiffstats
path: root/error_handlers
diff options
context:
space:
mode:
Diffstat (limited to 'error_handlers')
-rw-r--r--error_handlers/http_404.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/error_handlers/http_404.py b/error_handlers/http_404.py
new file mode 100644
index 00000000..712bf748
--- /dev/null
+++ b/error_handlers/http_404.py
@@ -0,0 +1,8 @@
+# coding=utf-8
+
+
+class Index:
+ error_code = 404
+
+ def err(self, req):
+ return req.Response(text="Page not found!", code=404)