Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /limber-project_limberframework /limberframework /routing /exceptions.py
| """Exceptions relating to routing requests.""" | |
| from starlette.status import HTTP_429_TOO_MANY_REQUESTS | |
| class TooManyRequestsException(Exception): | |
| """An exception for when a client reaches the rate limit. | |
| Attributes: | |
| status_code: A HTTP status code. | |
| detail: Message to describe the error. | |
| """ | |
| def __init__( | |
| self, | |
| status_code: int = HTTP_429_TOO_MANY_REQUESTS, | |
| detail: str = "Too many requests.", | |
| ) -> None: | |
| """Establish the status code and detail. | |
| Args: | |
| status_code: A HTTP status code. | |
| detail: Message to describe the error. | |
| """ | |
| self.status_code = status_code | |
| self.detail = detail | |
| super().__init__() | |
Xet Storage Details
- Size:
- 738 Bytes
- Xet hash:
- 6197165a52e7eacb089e40b51ca382eec600b96a6599cd025e5acb5559b6ae0a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.