Skip to main content

RestRequestRejection

@discordeno/rest


Documentation / @discordeno/rest / RestRequestRejection

Interface: RestRequestRejection

Defined in: rest/src/types.ts:3223

Properties

body?

optional body: string | object

Defined in: rest/src/types.ts:3229

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


error?

optional error: string

Defined in: rest/src/types.ts:3230


ok

ok: boolean

Defined in: rest/src/types.ts:3224


status

status: number

Defined in: rest/src/types.ts:3225


statusText?

optional statusText: string

Defined in: rest/src/types.ts:3227

The HTTP 1.1 status code text