Skip to content

Commit

Permalink
Envoie HTTP 500 lors d'une 500
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Aug 6, 2017
1 parent b9ed8c7 commit 299e44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ def delete_edit_content(request, edit_pk):

def custom_error_500(request):
"""Custom view for 500 errors"""
return render(request, '500.html')
return render(request, '500.html', status=500)

0 comments on commit 299e44d

Please sign in to comment.