fix: pool exhaustion and lock timeout surface as 500 instead of structured 503 (#295)

This commit is contained in:
d3vyce
2026-06-03 22:03:15 +02:00
committed by GitHub
parent 3ea8a612e5
commit cd928688af
8 changed files with 204 additions and 11 deletions
+6
View File
@@ -15,6 +15,8 @@ from fastapi_toolsets.exceptions import (
InvalidSearchColumnError,
InvalidFacetFilterError,
InvalidOrderFieldError,
PoolExhaustedError,
LockTimeoutError,
generate_error_responses,
init_exceptions_handlers,
)
@@ -38,6 +40,10 @@ from fastapi_toolsets.exceptions import (
## ::: fastapi_toolsets.exceptions.exceptions.InvalidOrderFieldError
## ::: fastapi_toolsets.exceptions.exceptions.PoolExhaustedError
## ::: fastapi_toolsets.exceptions.exceptions.LockTimeoutError
## ::: fastapi_toolsets.exceptions.exceptions.generate_error_responses
## ::: fastapi_toolsets.exceptions.handler.init_exceptions_handlers