send json response basic error
This commit is contained in:
parent
626a93a46c
commit
1ebba9f846
1 changed files with 2 additions and 2 deletions
|
|
@ -185,5 +185,5 @@ def register_exception_handlers(app: FastAPI):
|
||||||
|
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
status_code=HTTPStatus.NO_CONTENT,
|
status_code=HTTPStatus.NO_CONTENT,
|
||||||
content={"detail": exc.errors()},
|
content={"detail": exc},
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue