export interface ErrorResource { status?: number; code?: ErrorCode; title?: string; detail?: string; source?: string; } export interface OAuthError { error: string; error_description: string; } export declare type ErrorCode = "0.network_error" | "400.invalid_syntax" | "402.method_expired" | "402.not_ready" | "402.payment_due" | "401.auth_corrupt" | "401.auth_invalid" | "401.auth_expired" | "403.permissions" | "403.readonly" | "403.restricted_portal" | "403.must_verify" | "403.trial_limitation" | "403.team_mismatch" | "403.wrong_scope" | "403.tier_feature" | "403.primary_method_deletion" | "403.resource_capacity" | "404.department" | "404.support_ticket" | "404.support_ticket_reply" | "404.support_ticket.priority" | "404.tier" | "404.api_key" | "404.account" | "404.employee" | "404.team" | "404.team_invitation" | "404.datacenter" | "404.dns_zone" | "404.dns_record" | "404.repo" | "404.container" | "404.cluster" | "404.plan" | "404.instance" | "404.instance_log" | "404.payment_method" | "404.invoice" | "404.image" | "404.job" | "404.image_build_logs" | "404.notification" | "404.node" | "404.promo_code" | "404.environment" | "415.invalid_content_type" | "422.missing_argument" | "422.invalid_argument" | "422.invalid_input" | "422.not_compatible" | "422.already_exists" | "422.limit_reached" | "500.unknown" | "500.database" | "500.email" | "500.jobd" | "500.notify" | "500.image_state" | "500.support_activity" | "500.payment_gateway";