8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-09-27 14:43:08 +00:00

Correct http response status code

This commit is contained in:
Maxime Bombar 2019-04-15 10:00:38 +02:00
parent 3e03fc0c49
commit 458fe2f505

View file

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