summaryrefslogtreecommitdiffstats
path: root/ipsilon/util/errors.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-10-06 21:48:58 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-10-07 16:48:25 +0200
commit907d40cac424c9c7bf3a190b445858bc6eab949e (patch)
tree2b9194f7cb8f021e8ac49de59b5fbb59fb81ac8a /ipsilon/util/errors.py
parent3f7e6358c02d0822c5fe1c2da72a3b32ffe12ec6 (diff)
downloadipsilon-907d40cac424c9c7bf3a190b445858bc6eab949e.tar.gz
ipsilon-907d40cac424c9c7bf3a190b445858bc6eab949e.tar.xz
ipsilon-907d40cac424c9c7bf3a190b445858bc6eab949e.zip
Add pretty handler for 404
Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/util/errors.py')
-rwxr-xr-xipsilon/util/errors.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipsilon/util/errors.py b/ipsilon/util/errors.py
index 3d7ea28..2f3cc3d 100755
--- a/ipsilon/util/errors.py
+++ b/ipsilon/util/errors.py
@@ -54,3 +54,10 @@ class Error_401(Errors):
def handler(self, status, message, traceback, version):
return self._error_template('unauthorized.html',
title='Unauthorized', message=message)
+
+
+class Error_404(Errors):
+
+ def handler(self, status, message, traceback, version):
+ return self._error_template('notfound.html',
+ title='Not Found', message=message)