fastapi_tools.exceptions
¶
Custom HTTP exceptions for the webapp.
Classes:
-
NotAuthenticatedException–Raised when a request requires authentication but none was provided.
-
NotAuthorizedException–Raised when the authenticated user lacks required permissions.
-
RateLimitExceededException–Raised when a client exceeds the configured rate limit.
-
ServiceUnavailableException–Raised when a downstream service is unavailable.
-
ValidationException–Raised for request validation errors.
NotAuthenticatedException
¶
Bases: HTTPException
Raised when a request requires authentication but none was provided.
Source code in src/fastapi_tools/exceptions.py
NotAuthorizedException
¶
RateLimitExceededException
¶
Bases: HTTPException
Raised when a client exceeds the configured rate limit.
Source code in src/fastapi_tools/exceptions.py
ServiceUnavailableException
¶
ValidationException
¶
Bases: HTTPException
Raised for request validation errors.