Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

721 B
Raw Blame
from rest_framework.exceptions import APIException


class UserIdNotExist(APIException):
    status_code = 404
    default_detail = "User ID does not exist"


class UserAlreadyExistInOrganization(APIException):
    status_code = 403
    default_detail = "User allready exist in the organization"


class OrganizationNotExist(APIException):
    status_code = 404
    default_detail = "Organization does not exist"


class UnknownException(APIException):
    status_code = 500
    default_detail = "An unexpected error occurred"


class BadRequestException(APIException):
    status_code = 400
    default_detail = "Bad Request"


class Unauthorized(APIException):
    status_code = 401
    default_detail = "Unauthorized"