From 907d40cac424c9c7bf3a190b445858bc6eab949e Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 6 Oct 2014 21:48:58 -0400 Subject: Add pretty handler for 404 Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- ipsilon/util/errors.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ipsilon/util/errors.py') 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) -- cgit