Defines standard enumeration error codes for Saleor app operations and problem creation. Use for robust error handling and API response validation within Saleor e-commerce extensions.
# Source: https://github.com/saleor/saleor | License: BSD-3-Clause | Copyright 2020-2023, Saleor Commerce
# Provided via justclaw.it.com; keep this notice with the code.
from enum import Enum
class AppErrorCode(Enum):
FORBIDDEN = "forbidden"
GRAPHQL_ERROR = "graphql_error"
INVALID = "invalid"
INVALID_STATUS = "invalid_status"
INVALID_PERMISSION = "invalid_permission"
INVALID_URL_FORMAT = "invalid_url_format"
INVALID_MANIFEST_FORMAT = "invalid_manifest_format"
INVALID_CUSTOM_HEADERS = "invalid_custom_headers"
DUPLICATED_EXTENSION_IDENTIFIER = "duplicated_extension_identifier"
DUPLICATED_WEBHOOK_IDENTIFIER = "duplicated_webhook_identifier"
MANIFEST_URL_CANT_CONNECT = "manifest_url_cant_connect"
NOT_FOUND = "not_found"
REQUIRED = "required
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key