mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 23:36:20 +08:00
27 lines
718 B
Python
27 lines
718 B
Python
class HttpRequestNodeError(ValueError):
|
|
"""Custom error for HTTP request node."""
|
|
|
|
|
|
class AuthorizationConfigError(HttpRequestNodeError):
|
|
"""Raised when authorization config is missing or invalid."""
|
|
|
|
|
|
class FileFetchError(HttpRequestNodeError):
|
|
"""Raised when a file cannot be fetched."""
|
|
|
|
|
|
class InvalidHttpMethodError(HttpRequestNodeError):
|
|
"""Raised when an invalid HTTP method is used."""
|
|
|
|
|
|
class ResponseSizeError(HttpRequestNodeError):
|
|
"""Raised when the response size exceeds the allowed threshold."""
|
|
|
|
|
|
class RequestBodyError(HttpRequestNodeError):
|
|
"""Raised when the request body is invalid."""
|
|
|
|
|
|
class InvalidURLError(HttpRequestNodeError):
|
|
"""Raised when the URL is invalid."""
|