8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 04:43:10 +00:00

Merge branch 'HandleHttpErrors' into 'dev'

Correct http response status code

See merge request federez/re2o!418
This commit is contained in:
klafyvel 2019-04-20 19:05:43 +02:00
commit cd2c666b46

View file

@ -125,10 +125,10 @@ def contact_page(request):
def handler500(request): def handler500(request):
"""The handler view for a 500 error""" """The handler view for a 500 error"""
return render(request, 'errors/500.html') return render(request, 'errors/500.html', status=500)
def handler404(request): def handler404(request):
"""The handler view for a 404 error""" """The handler view for a 404 error"""
return render(request, 'errors/404.html') return render(request, 'errors/404.html', status=404)