From 458fe2f5050d0341613f2f600e5a4eaa2f712da1 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Mon, 15 Apr 2019 10:00:38 +0200 Subject: [PATCH] Correct http response status code --- re2o/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re2o/views.py b/re2o/views.py index 0ff2774b..aa85e997 100644 --- a/re2o/views.py +++ b/re2o/views.py @@ -125,10 +125,10 @@ def contact_page(request): def handler500(request): """The handler view for a 500 error""" - return render(request, 'errors/500.html') + return render(request, 'errors/500.html', status=500) def handler404(request): """The handler view for a 404 error""" - return render(request, 'errors/404.html') + return render(request, 'errors/404.html', status=404)