ErrorCode: "failed" | "request_cannot_be_parsed" | "request_read_timeout" | "response_cannot_be_parsed" | "too_many_requests" | "public_api_key_required" | "public_api_key_not_found" | "subscription_not_active" | "subscription_restricted" | "wrong_region" | "feature_not_enabled" | "visitor_not_found" | "missing_module" | "payload_too_large" | "service_unavailable" | "environment_restricted" | "installation_method_restricted" | "invalid_proxy_integration_secret" | "invalid_proxy_integration_headers" | "proxy_integration_secret_environment_mismatch" | "sandboxed_iframe" | "network_error" | "invalid_url" | "invalid_url_params" | "json_parsing_error" | "invalid_response_type" | "client_timeout" | "unknown_error" | "csp_block" | "invalid_endpoint" | "handle_agent_data" | "script_load_fail" | "bundle_not_defined" | "bad_response_format" | "server_error" | "api_key_missing" | "api_key_invalid" | "cache_misconfigured" | "endpoints_misconfigured" | "wrong_worker_option" | "worker_initialization_failed"

The known values of FingerprintError.code, emmited by one or multiple platforms (web, iOS, and Android).

The list is not exhaustive: a newer native SDK or the web agent may emit a code not yet included here, so FingerprintError.code accepts any string. This union exists to give editor autocomplete for the common cases (e.g. in error.code === '...' checks).