aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/views/notfound.py
diff options
context:
space:
mode:
Diffstat (limited to 'fietsboek/views/notfound.py')
-rw-r--r--fietsboek/views/notfound.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/fietsboek/views/notfound.py b/fietsboek/views/notfound.py
index cad18aa..f7117fe 100644
--- a/fietsboek/views/notfound.py
+++ b/fietsboek/views/notfound.py
@@ -1,7 +1,15 @@
+"""Error views."""
from pyramid.view import notfound_view_config
@notfound_view_config(renderer='fietsboek:templates/404.jinja2')
def notfound_view(request):
+ """Renders the 404 response.
+
+ :param request: The Pyramid request.
+ :type request: pyramid.request.Request
+ :return: The HTTP response.
+ :rtype: pyramid.response.Response
+ """
request.response.status = 404
return {}