Skip to main content

RestRequestRejection

Documentation


Documentation / @discordeno/rest / RestRequestRejection

Interface: RestRequestRejection

Defined in: types.ts:3553

Properties

body?

optional body?: string | object

Defined in: types.ts:3559

The returned body parsed if it was JSON, otherwise it will be the raw body as a string


error?

optional error?: string

Defined in: types.ts:3560


errorObject?

optional errorObject?: Error

Defined in: types.ts:3561


ok

ok: boolean

Defined in: types.ts:3554


status

status: number

Defined in: types.ts:3555


statusText?

optional statusText?: string

Defined in: types.ts:3557

The HTTP 1.1 status code text