Buckets:

download
raw
1.81 kB
from fastapi import HTTPException, status
class CloudnameNotExistsException(HTTPException):
def __init__(self, detail: str = "The requested cloudname does not exists"):
super().__init__(
status_code=status.HTTP_404_NOT_FOUND,
detail=detail,
)
class ImageDecodeException(HTTPException):
def __init__(self, detail: str = "Can not decode the image data"):
super().__init__(
status_code=status.HTTP_400_BAD_REQUEST,
detail=detail,
)
class ImageProcessorException(HTTPException):
def __init__(self, detail: str = "Can not apply image modification"):
super().__init__(
status_code=status.HTTP_400_BAD_REQUEST,
detail=detail,
)
class UnprocessableCommandArgumentsException(HTTPException):
def __init__(self, detail: str = "Unprocessable command arguments"):
super().__init__(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail=detail,
)
class InsufficientCommandArgumentsException(HTTPException):
def __init__(self, detail: str = "Insufficient number of command arguments"):
super().__init__(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail=detail,
)
class InvalidCommandOperationException(HTTPException):
def __init__(self, detail: str = "Invalid command operation"):
super().__init__(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
detail=detail,
)
class FetchImageURLException(HTTPException):
def __init__(
self, detail: str = "Unable to retrieve image from the requested url."
):
super().__init__(
status_code=status.HTTP_400_BAD_REQUEST,
detail=detail,
)

Xet Storage Details

Size:
1.81 kB
·
Xet hash:
5c830e05ee5add7833871f0f37f986d6e07d5257818121f24816bec8b29d36fc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.