انتقل إلى المحتوى الرئيسي

Variable: KEY_CUSTODIAN_ERROR_CODES

const KEY_CUSTODIAN_ERROR_CODES: readonly ["invalid_handle", "invalid_request", "backend_missing", "unsupported_algorithm", "policy_refused", "unwrap_failed", "duplicate_key", "login_failed", "custody_unavailable"]

Defined in: packages/key-custodian/src/errors.ts:17

Every code a custodian raises, as a value. The union below is derived from it, so the two cannot drift, and a consumer that owes a decision per code (the hardware adapter of KeyWrap maps each one) can check its table against this list instead of reading this file's text.