Interface: AuthErrorOptions
Defined in: src/core/errors/apiError.ts:39
Extends
Properties
cause?
ts
optional cause?: unknown;Defined in: src/core/errors/apiError.ts:5
The error that caused this one — a transport failure, a parse failure.
Inherited from
status?
ts
optional status?: number;Defined in: src/core/errors/apiError.ts:47
The status the response actually carried. Defaults to 401.
Overridden where the credentials were refused behind a status that says otherwise: an endpoint permitting anonymous access answers 200 with an anonymous-scope body and reports the refusal in X-Seraph-LoginReason. Recording 401 there would name a status that never crossed the wire.