공부
[fastapi] return JSONResponse(status_code=400, content={})
승가비
2023. 9. 29. 14:32
728x90
https://stackoverflow.com/questions/68770979/how-to-raise-an-http-400-in-a-model
How to raise an HTTP 400 in a model?
My route: @router.get('/check/{value}', status_code=200) def ranks_check(value: BasicInput = Depends()): """ Test endpoint """ return value My model:...
stackoverflow.com
728x90