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

Error name.

message?: string

Error message.

status?: number

HTTP status code.

statusText?: string

HTTP status text.

stack?: string

Error stack trace.

errors?: { message: string }[]

Array of error messages.