Skip to main content

Interface: RejectedAnswer

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / RejectedAnswer

Interface: RejectedAnswer

Defined in: packages/gswap-sdk/dist/index.d.ts:1576

The HTTP answer a rejection of the app's requestor stands for (see ChainGatewayOptions.answerOfRejection).

Properties​

body​

body: unknown

Defined in: packages/gswap-sdk/dist/index.d.ts:1580

The answer's body: parsed JSON when it was JSON, else the raw text.


headers?​

optional headers?: Record<string, string | undefined>

Defined in: packages/gswap-sdk/dist/index.d.ts:1582

The answer's headers, for Retry-After.


status​

status: number

Defined in: packages/gswap-sdk/dist/index.d.ts:1578

The HTTP status of the answer (100-599).