📜  引发 400 错误 python 代码示例

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

代码示例1
@app.route("/")
def bad_request():
    return Response(
        "The response body goes here",
        status=status.HTTP_400_BAD_REQUEST,
    )