Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

raise 400 error python

@app.route("/")
def bad_request():
    return Response(
        "The response body goes here",
        status=status.HTTP_400_BAD_REQUEST,
    )
 
PREVIOUS NEXT
Tagged: #raise #error #python
ADD COMMENT
Topic
Name
3+4 =