@app.errorhandler(400)
def bad_request(e):
    return (render_template('error.html', description=e.description, code=e.code), 400)
@app.errorhandler(400)
def bad_request(e):
    return (render_template('error.html', description=e.description, code=e.code), 400)