Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

956 B
Raw Blame
from http import HTTPStatus

from libs.exception import BaseHTTPException


class ChannelAlreadyConfiguredHttpError(BaseHTTPException):
    error_code = "conflict"
    description = "A Channel is already configured for this kind."
    code = HTTPStatus.CONFLICT


class ChannelNotFoundHttpError(BaseHTTPException):
    error_code = "not_found"
    description = "Channel not found."
    code = HTTPStatus.NOT_FOUND


class ChannelProviderConfigurationUpdatedHttpError(BaseHTTPException):
    error_code = "provider_configuration_updated"
    description = "The Channel configuration was updated."
    code = HTTPStatus.CONFLICT


class ChannelProviderBadRequestHttpError(BaseHTTPException):
    error_code = "bad_request"
    code = HTTPStatus.BAD_REQUEST


class ChannelReplacementRequiredHttpError(BaseHTTPException):
    error_code = "replacement_required"
    description = "Explicit IM Channel replacement is required."
    code = HTTPStatus.CONFLICT