Browse Source

Correct http response status code

broaden_customised_reminder_message
Maxime Bombar 7 years ago
parent
commit
458fe2f505
  1. 4
      re2o/views.py

4
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)

Loading…
Cancel
Save