send json response basic error
This commit is contained in:
+1
-1
@@ -185,5 +185,5 @@ def register_exception_handlers(app: FastAPI):
|
||||
|
||||
return JSONResponse(
|
||||
status_code=HTTPStatus.NO_CONTENT,
|
||||
content={"detail": exc.errors()},
|
||||
content={"detail": exc},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user