fix
This commit is contained in:
parent
0b29c9a89a
commit
19211c9d75
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user