#[repr(u16)]pub enum StatusCode {
Show 39 variants
AccessConditionNotFulfilled = 38_916,
AlgorithmNotSupported = 38_020,
ClaNotSupported = 28_160,
CodeBlocked = 38_976,
CodeNotInitialized = 38_914,
CommandIncompatibleFileStructure = 27_009,
ConditionsOfUseNotSatisfied = 27_013,
ContradictionInvalidation = 38_928,
ContradictionSecretCodeStatus = 38_920,
CustomImageBootloader = 26_159,
CustomImageEmpty = 26_158,
FileAlreadyExists = 27_273,
FileNotFound = 37_892,
GpAuthFailed = 25_344,
Halted = 28_586,
InconsistentFile = 37_896,
IncorrectData = 27_264,
IncorrectLength = 26_368,
IncorrectP1P2 = 27_392,
InsNotSupported = 27_904,
DeviceNotOnboarded = 27_911,
DeviceNotOnboarded2 = 26_129,
InvalidKcv = 38_021,
InvalidOffset = 37_890,
Licensing = 28_482,
LockedDevice = 21_781,
MaxValueReached = 38_992,
MemoryProblem = 37_440,
MissingCriticalParameter = 26_624,
NoEfSelected = 37_888,
NotEnoughMemorySpace = 27_268,
Ok = 36_864,
PinRemainingAttempts = 25_536,
ReferencedDataNotFound = 27_272,
SecurityStatusNotSatisfied = 27_010,
TechnicalProblem = 28_416,
UnknownApdu = 27_906,
UserRefusedOnDevice = 21_761,
NotEnoughSpace = 20_738,
}Expand description
Device status codes (two bytes, trailing response data)
Replicated from: https://github.com/LedgerHQ/ledger-live/blob/develop/libs/ledgerjs/packages/errors/src/index.ts#L212
Variants§
AccessConditionNotFulfilled = 38_916
Access condition not fulfilled
AlgorithmNotSupported = 38_020
Algorithm not supported
ClaNotSupported = 28_160
APDU class not supported
CodeBlocked = 38_976
Code blocked
CodeNotInitialized = 38_914
Code not initialized
CommandIncompatibleFileStructure = 27_009
Command incompatible file structure
ConditionsOfUseNotSatisfied = 27_013
Conditions of use not satisfied
ContradictionInvalidation = 38_928
Contradiction invalidation
ContradictionSecretCodeStatus = 38_920
Contradiction secret code status
CustomImageBootloader = 26_159
Custom image bootloader
CustomImageEmpty = 26_158
Custom image empty
FileAlreadyExists = 27_273
File already exists
FileNotFound = 37_892
File not found
GpAuthFailed = 25_344
GP auth failed
Halted = 28_586
Device halted
InconsistentFile = 37_896
Inconsistent file
IncorrectData = 27_264
Incorrect data
IncorrectLength = 26_368
Incorrect length
IncorrectP1P2 = 27_392
Incorrect P1 or P2 values
InsNotSupported = 27_904
Instruction not supported
DeviceNotOnboarded = 27_911
Device not onboarded
DeviceNotOnboarded2 = 26_129
Device also not onboarded
InvalidKcv = 38_021
Invalid KCV
InvalidOffset = 37_890
Invalid offset
Licensing = 28_482
Licensing error
LockedDevice = 21_781
Device locked
MaxValueReached = 38_992
Max value reached
MemoryProblem = 37_440
Memory problem
MissingCriticalParameter = 26_624
Missing critical parameter
NoEfSelected = 37_888
No EF selected
NotEnoughMemorySpace = 27_268
Not enough memory space
Ok = 36_864
OK
PinRemainingAttempts = 25_536
Remaining PIN attempts
ReferencedDataNotFound = 27_272
Referenced data not found
SecurityStatusNotSatisfied = 27_010
Security status not satisfied
TechnicalProblem = 28_416
Technical problem
UnknownApdu = 27_906
Unknown APDU
UserRefusedOnDevice = 21_761
User refused on device
NotEnoughSpace = 20_738
Not enough space
Trait Implementations§
Source§impl Clone for StatusCode
impl Clone for StatusCode
Source§fn clone(&self) -> StatusCode
fn clone(&self) -> StatusCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more