/** * Indicates that the server received an invalid response from the upstream server. Causes could be incorrectly configured target server at gateway, EOF exception, incorrectly configured keep-alive timeouts. Please reach out to support team as next step for this error resolution. */ export declare class BadGatewayError { /** * Snake cased all caps error code interpreted from the HTTP status code that can programmatically be acted upon. */ code: BadGatewayErrorCodeEnum; /** * A human-readable explanation of the error, specific to this error occurrence. */ message: string; constructor(badGatewayError: BadGatewayErrorProperties); } export type BadGatewayErrorCodeEnum = '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 BadGatewayErrorProperties { code: BadGatewayErrorCodeEnum; message: string; }