Skip to main content

Variable: EXTENSION_API_ERROR_CODES

const EXTENSION_API_ERROR_CODES: readonly ["PermissionDeniedError", "NetworkHostNotAllowedError", "ResponseTooLargeError", "QuotaExceededError", "ApiExportNotFoundError", "ProviderNotRegisteredError", "RpcProtocolError", "RpcTimeoutError", "RpcCancelledError", "ExtensionNotActiveError", "SettingRequiredError", "IncompatibleApiVersionError", "MethodRemovedError"]

Defined in: Extensions/ExtensionApiDtos.ts:1093

Stable error code strings the host throws over RPC. The worker re-raises them as subclasses of ExtensionApiError (defined in the worker runtime). The names match Spec A's "Errors" table.