Light Logo
JavaScript SDK (v0.39.1)Reference

WriftAIAPIError

Representation of an error from WriftAI's API.

Class: WriftAIAPIError

Representation of an error from WriftAI's API.

Extends

  • Error

Constructors

Constructor

new WriftAIAPIError(status, body, url): WriftAIAPIError

Creates an instance of the error.

Parameters

status

number

HTTP status code returned by the API

body

string

Raw response text body

url

string

Full URL of the request

Returns

WriftAIAPIError

Overrides

Error.constructor

Properties

body

body: string

Raw response text body


status

status: number

HTTP status code returned by the API


url

url: string

Full URL of the request