SealedOptionalbody: unknownOptionalurl: stringOptionalmethod: stringOptional ReadonlybodyThe full parsed JSON response body, when available.
Optional ReadonlycodeApplication error code from the response body, if present.
E.g. "INSUFFICIENT_FUNDS", "CALL_EXCEPTION".
Optional ReadonlyheadersRaw response headers, when available — e.g. to read PAYMENT-REQUIRED off a 402.
Optional ReadonlymethodThe HTTP method (e.g. GET, POST), when available.
OptionalstackReadonlystatusHTTP status code (e.g. 500, 404).
Optional ReadonlyurlThe request URL, when available.
Thrown when Salt's attempt to back up a new account's keyshare failed. Unlike KeyshareBackupUnavailableError, the failure may be temporary: create the account again.
The backend reports it as a
500witherrorCodeKEYSHARE_BACKUP_FAILED. This is a subclass of ApiError, so existingcatch (e) { if (e instanceof ApiError) ... }handlers keep working.Example