@app.errorhandler(404) def error404(e): return render_template('404.html')
文檔:http://docs.jinkan.org/docs/flask/patterns/errorpages.htmlhtml