Skip to content

VisitorsApiError

An error answer from ebitex, or an answer the SDK could not read.

  • Error

new VisitorsApiError(message, status, code?, requestId?, errors?): VisitorsApiError

string

number

string

string

Record<string, string>

VisitorsApiError

Error.constructor

optional cause?: unknown

Error.cause


readonly code: string | undefined

The error member of the answer, when there was one: for example invalid_api_key, origin_denied or rate_limited.


readonly errors: Record<string, string> | undefined

When the answer named what was wrong with each member (a bad name, an undeclared or mistyped property), a message for each, keyed by member.


message: string

Error.message


name: string

Error.name


readonly requestId: string | undefined

The X-Request-Id of the answer. Quote it when you ask for help.


optional stack?: string

Error.stack


readonly status: number

The HTTP status, or 0 when the request never got an answer (a network failure).