@app.errorhandler(404)
def page_not_found(e):
    return ('<h1>404</h1><p>The resource could not be found.</p>', 404)
@app.errorhandler(404)
def page_not_found(e):
    return ('<h1>404</h1><p>The resource could not be found.</p>', 404)