/** * Indicates that the API is either down for maintenance or overloaded and cannot fulfill the request at the current time. This is a temporary error and retrying the same request after a certain delay could eventually result in success. There will be a Retry-After HTTP header in API response specifying how long to wait to retry the request. If there is no Retry-After HTTP header then retry can happen immediately. If the error persists after retrying with delay, please reach out to .\" */ export declare class ServiceUnavailableError { /** * Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon. */ code: ServiceUnavailableErrorCodeEnum; /** * A human-readable explanation of the error, specific to this error occurrence. */ message: string; constructor(serviceUnavailableError: ServiceUnavailableErrorProperties); } export type ServiceUnavailableErrorCodeEnum = 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'ACCOUNT_UPDATE_NOT_FOUND' | 'TOO_MANY_REQUESTS' | 'INTERNAL_SERVER_ERROR' | 'BAD_GATEWAY' | 'RETRYABLE_ACCOUNT_SCREEN_FAILURE' | 'RETRYABLE_ACCOUNT_UPDATE_FAILURE' | 'GATEWAY_TIMEOUT' | 'BAD_REQUEST'; export interface ServiceUnavailableErrorProperties { code: ServiceUnavailableErrorCodeEnum; message: string; }