📜  烧瓶返回错误响应 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.453000             🧑  作者: Mango

代码示例1
@app.route('/')
def index():
    resp = make_response("Record not found", 400)
    resp.headers['X-Something'] = 'A value'
    return resp