A failure's ErrorInfo, read. Narrow on reason.

interface ApiErrorInfo {
    code: Code;
    details: StatusDetail[];
    domain: string;
    field?: string;
    message: string;
    metadata: Record<string, string>;
    reason: ErrorReason | string & {};
    resource?: string;
}

Properties

code: Code
details: StatusDetail[]

Every detail of the status (the ErrorInfo among them), for errorDetail.

domain: string
field?: string
message: string
metadata: Record<string, string>
reason: ErrorReason | string & {}
resource?: string