Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /inteliver_inteliver /src /inteliver /storage /exceptions.py
| from fastapi import HTTPException, status | |
| class CludnameNotSetException(HTTPException): | |
| def __init__(self, detail: str = "Cloudname not set"): | |
| super().__init__( | |
| status_code=status.HTTP_404_NOT_FOUND, | |
| detail=detail, | |
| ) | |
| class UnsupportedImageFormatException(HTTPException): | |
| def __init__(self, detail: str = "Unsupported image format"): | |
| super().__init__( | |
| status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, | |
| detail=detail, | |
| ) | |
| class InvalidImageFileException(HTTPException): | |
| def __init__(self, detail: str = "Invalid image file"): | |
| super().__init__( | |
| status_code=status.HTTP_422_UNPROCESSABLE_ENTITY, | |
| detail=detail, | |
| ) | |
| class S3ErrorException(HTTPException): | |
| def __init__(self, detail: str = "S3 object storage error occured"): | |
| super().__init__( | |
| status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, | |
| detail=detail, | |
| ) | |
| class S3ErrorObjectNotFoundException(HTTPException): | |
| def __init__(self, detail: str = "Object not found"): | |
| super().__init__( | |
| status_code=status.HTTP_404_NOT_FOUND, | |
| detail=detail, | |
| ) | |
Xet Storage Details
- Size:
- 1.21 kB
- Xet hash:
- 051dda24420e20f79b6648fbca45043283ab6e93584fd943f91fe878c17d4472
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.