Created
June 5, 2014 15:01
-
-
Save caio-nas/6c0b7ec2e26df7dd2f1b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#HTTP error handling | |
@app_context.errorhandler(404) | |
def not_found(error): | |
return render_template('404.html'), 404 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment