From 19211c9d75f7c21f18908577ac07fa6139e5413b Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sat, 15 Feb 2025 13:17:32 +0800 Subject: [PATCH] fix --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 0c2cccf..f3f5995 100644 --- a/app/main.py +++ b/app/main.py @@ -66,7 +66,7 @@ async def health_check(): @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): - return JSONResponse( + return CustomJSONResponse( status_code=400, content=error_response( code=400, @@ -76,7 +76,7 @@ async def validation_exception_handler(request, exc): @app.exception_handler(HTTPException) async def http_exception_handler(request, exc): - return JSONResponse( + return CustomJSONResponse( status_code=exc.status_code, content=error_response( code=exc.status_code,