Skip to content

Commit

Permalink
#334 : Fix the wrong error codes on error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbiche committed Feb 6, 2020
1 parent a015f5c commit e216686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def home():

@app.errorhandler(NotFound)
def error_404(e):
return render_template('error.html', code=404)
return render_template('error.html', code=404), 404

@app.errorhandler(Gone)
def error_410(e):
return render_template('error.html', code=410)
return render_template('error.html', code=410), 410

@app.errorhandler(InternalServerError)
def error_500(e):
return render_template('error.html', code=500)
return render_template('error.html', code=500), 500

0 comments on commit e216686

Please sign in to comment.