Extends
Constructors
Constructor
Parameters
status
number
body
unknown
headers
Headers
message?
string
Returns
BadRequestError
Inherited from
APIError.constructor
Properties
body
undefined for an empty body.
Inherited from
APIError.body
headers
Inherited from
APIError.headers
requestId
x-typesafe-request-id, or undefined when absent.
Inherited from
APIError.requestId
status
Inherited from
APIError.status
Methods
fromResponse()
Parameters
status
number
body
unknown
headers
Headers
Returns
APIError
Inherited from
APIError.fromResponse
