From 962be094cdcbf19b3a3939bd4bfa44162b3d2a86 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 5 Feb 2018 22:50:51 +0000 Subject: Mart's Missing Files 2: Electric Boogaloo --- error_handlers/http_404.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 error_handlers/http_404.py (limited to 'error_handlers/http_404.py') diff --git a/error_handlers/http_404.py b/error_handlers/http_404.py new file mode 100644 index 00000000..5920806f --- /dev/null +++ b/error_handlers/http_404.py @@ -0,0 +1,11 @@ +# coding=utf-8 + +# External Libraries +from werkzeug.wrappers import Response + + +class Index: + error_code = 404 + + def err(self): + return Response("Page not found!", 404) -- cgit v1.2.3