SW1 '90' '91'
Responses to commands which are correctly executed
SW2 '00' 'XX' Description - normal ending of the command - normal e
nding of the command, with extra information from the proactive SIM containing a command for the ME. Length 'XX' of the response data '9E' 'XX' - length 'XX' of the response data given in case of a SIM data download error '9F' 'XX' - length 'XX' of the response data
Responses to commands which are postponed
SW2 '00' Error description - SIM Application Toolkit is busy. Command cannot be executed at present, further normal commands are allowed.
SW2 '0X' Error description - command successful but after using an internal update retry routine 'X' times '92' '40' - memory problem
SW1 '94' '94' '94'
SW2 '00' '02' '04' - no EF selected - out of range (invalid address) - file ID not found - pattern not found '94' '08' - file is inconsistent with the command Error description
SW1 '98' '98'
SW2 '02' '04' - no CHV initialized - access condition not fulfilled - unsuccessful CHV verification, at least one attempt left - unsuccessful UNBLOCK CHV verification, at least one attempt left - authentication failed (see note) '98' '98' '98' '08' '10' '40' - in contradiction with CHV status - in contradiction with invalidation status - unsuccessful CHV verification, no attempt left - unsuccessful UNBLOCK CHV verification, no attempt left - CHV blocked - UNBLOCK CHV blocked '98' '50' - increase cannot be performed, Max value reached Error description
A Phase 1 SIM may send this error code after the third consecutive unsuccessful CHV verification attempt or the tenth consecutive unsuccessful unblocking attempt.
SW1 '67' '6B' '6D' '6E' '6F'
Application independent errors
SW2 'XX' 'XX'# 'XX'# 'XX'# 'XX'# Error description - incorrect parameter P3 (see note) - incorrect parameter P1 or P2 (see ##) - unknown instruction code given in the command - wrong instruction class given in the command - technical problem with no diagnostic given
NOTE 1: # These values of 'XX' are specified by ISO/IEC; at present the default value 'XX'='00' is the only one defined. NOTE 2: ## When the error in P1 or P2 is caused by the addressed record being out of range, then the return code '94 02' shall be used.
NOTE: 'XX' gives the correct length or states that no additional information is given ('XX' = '00').
Table 12 - Coding of SW1-SW2
SW1-SW2 Normal processing
No further qualification SW2 indicates the number of response bytes still available (see text below) Warning processings
State of non-volatile memory unchanged (further qualification in SW2, see table 13) State of non-volatile memory changed (further qualification in SW2, see table 14) Execution errors
'64XX' '65XX' '66XX'
State of non-volatile memory unchanged (SW2='00', other values are RFU) State of non-volatile memory changed (further qualification in SW2, see table 15) Reserved for security-related issues (not defined in this part of ISO/IEC 7816) Checking errors
'6700' '68XX' '69XX' '6AXX' '6B00' '6CXX' '6D00' '6E00' '6F00'
Wrong length Functions in CLA not supported (further qualification in SW2, see table 16) Command not allowed (further qualification in SW2, see table 17) Wrong parameter(s) P1-P2 (further qualification in SW2, see table 18) Wrong parameter(s) P1-P2 Wrong length Le: SW2 indicates the exact length (see text below) Instruction code not supported or invalid Class not supported No precise diagnosis
Table 13 - Coding of SW2 when SW1='62'
SW2 '00' '81' '82' '83' '84'
Meaning No information given Part of returned data may be corrupted End of file/record reached before reading Le bytes Selected file invalidated FCI not formatted according to 1.1.5
Table 14 - Coding of SW2 when SW1='63'
SW2 '00' No information given
File filled up by the last write Counter provided by 'X' (valued from 0 to 15) (exact meaning depending on the command)
Table 15 - Coding of SW2 when SW1='65'
SW2 '00' '81'
Meaning No information given Memory failure
Table 16 - Coding of SW2 when SW1='68'
SW2 '00' '81' '82'
Meaning No information given Logical channel not supported Secure messaging not supported
Table 17 - Coding of SW2 when SW1='69'
SW2 '00' '81' '82' '83' '84' '85' '86' '87' '88'
Meaning No information given Command incompatible with file structure Security status not satisfied Authentication method blocked Referenced data invalidated Conditions of use not satisfied Command not allowed (no current EF) Expected SM data objects missing SM data objects incorrect
Table 18 - Coding of SW2 when SW1='6A'
SW2 '00' '80' '81' '82'
Meaning No information given Incorrect parameters in the data field Function not supported File not found
'83' '84' '85' '86' '87' '88'
Record not found Not enough memory space in the file Lc inconsistent with TLV structure Incorrect parameters P1-P2 Lc inconsistent with P1-P2 Referenced data not found