aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat/routes.py4
-rw-r--r--fatcat/templates/404.html6
2 files changed, 10 insertions, 0 deletions
diff --git a/fatcat/routes.py b/fatcat/routes.py
index 24fd5b18..bc7d2821 100644
--- a/fatcat/routes.py
+++ b/fatcat/routes.py
@@ -92,6 +92,10 @@ def editor_changelog(username):
### Static Routes ###########################################################
+@app.errorhandler(404)
+def page_not_found(e):
+ return render_template('404.html'), 404
+
@app.route('/', methods=['GET'])
def homepage():
return render_template('home.html')
diff --git a/fatcat/templates/404.html b/fatcat/templates/404.html
new file mode 100644
index 00000000..c8fbfeac
--- /dev/null
+++ b/fatcat/templates/404.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% block body %}
+
+<h1>404: Not Found</h1>
+
+{% endblock %}