send json response basic error

This commit is contained in:
Tiago vasconcelos 2022-06-15 16:37:10 +01:00
parent 626a93a46c
commit 1ebba9f846

View file

@ -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},
) )