Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /inteliver_inteliver /src /inteliver /users /exceptions.py
| from fastapi import HTTPException, status | |
| class UserAlreadyExistsException(HTTPException): | |
| def __init__(self, detail: str = "Username (email) already exists"): | |
| super().__init__( | |
| status_code=status.HTTP_409_CONFLICT, | |
| detail=detail, | |
| ) | |
| class UserNotFoundException(HTTPException): | |
| def __init__(self, detail: str = "User not found"): | |
| super().__init__(status_code=status.HTTP_404_NOT_FOUND, detail=detail) | |
| class DatabaseException(HTTPException): | |
| def __init__(self, detail: str = "Database error"): | |
| super().__init__( | |
| status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=detail | |
| ) | |
Xet Storage Details
- Size:
- 671 Bytes
- Xet hash:
- 20efaea97c9c39ad28d2f5cc237c3dedecb9ec78c49bf0bbf7a9d516c267d5c5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.