Commit cd2c666b authored by klafyvel's avatar klafyvel

Merge branch 'HandleHttpErrors' into 'dev'

Correct http response status code

See merge request federez/re2o!418
parents 3e03fc0c 458fe2f5
Pipeline #1149 passed with stage
in 3 minutes and 16 seconds
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment