This is the output of endpoints if an error occurs.

interface ErrorOutput {
    code?: string;
    error: string;
    message: string;
    statusCode: number;
}

Properties

code?: string

An error code with specific information about the error (e.g. AUTHORIZATION_DISABLED) It is not always available.

error: string

The error message title. (e.g. Forbidden)

message: string

The error message. (e.g. Authorization requests are disabled)

statusCode: number

The status code of the error. (e.g. 403)