Skip to main content
This object extends the native JavaScript Error class and is thrown when a problem occurs while communicating with Smile’s API.
status
number

The HTTP status code from the API response, or 0 for network-level errors (e.g. the user is offline).

Example:

400

message
string

A human-readable error message describing what went wrong.

Example:

"An invalidtokenvalue was provided."

requestId
string

A unique identifier for the request, useful when contacting Smile's support team.

Example:

"5b36eda6-1460-44c2-95cb-bd38755e5451"