Enumeration ErrorCode

Error codes that can be returned by the API. Used to identify the type of error.

Enumeration Members

Unknown: "general/unknown"

Last-resort error code if the problem cannot be reliably determined.

Unreachable: "general/unreachable"

A fetch error caused by networking problems, unreachable server or CORS issue.

GarbledResponse: "general/garbled-response"

The received response cannot be parsed, for example if it contains incomplete or invalid JSON.

UnexpectedResponse: "general/unexpected-response"

The received response was ok and could be parsed, but did not contain the expected data.

Unauthorised: "general/unauthorised"

The response has a status code 401. The user has no access to this operation using the provided credentials, or the credentials may have expired.

TechnicalProblem: "general/technical-problem"

A technical problem has occurred

MissingFields: "general/missing-fields"

Required fields are missing

OrganisationNotFound: "organisation/not-found"

The organisation with the given ID does not exist.

DifferentOrganisation: "organisation/different-organisation"

The organisation the user was trying to access is not available in this session. The user may be using the wrong credentials.

ProjectNotFound: "project/not-found"

The project with the given ID does not exist

EntryNotFound: "entry/not-found"

The entry with the given ID does not exist