RestRequestRejection
Documentation / @discordeno/rest / RestRequestRejection
Interface: RestRequestRejection
Defined in: types.ts:3340
Properties
body?
optionalbody?:string|object
Defined in: types.ts:3346
The returned body parsed if it was JSON, otherwise it will be the raw body as a string
error?
optionalerror?:string
Defined in: types.ts:3347
errorObject?
optionalerrorObject?:Error
Defined in: types.ts:3348
ok
ok:
boolean
Defined in: types.ts:3341
status
status:
number
Defined in: types.ts:3342
statusText?
optionalstatusText?:string
Defined in: types.ts:3344
The HTTP 1.1 status code text