Represents an API error object.

export interface ApiError {
name?: string;
message?: string;
status?: number;
statusText?: string;
stack?: string;
errors?: Array<{ message: string }>;
[key: string]: unknown;
}
interface ApiError {
    name?: string;
    message?: string;
    status?: number;
    statusText?: string;
    stack?: string;
    errors?: { message: string }[];
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

Properties

name?: string

The error name.

message?: string

The error message.

status?: number

The HTTP status code.

statusText?: string

The HTTP status text.

stack?: string

The error stack trace.

errors?: { message: string }[]

An array of error messages.