#NEWLINE# def get_fault_code( self ) : #NEWLINE# #INDENT# if self . is_batch ( ) : #NEWLINE# #INDENT# ret_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for response in self . response_dict [ 'Body' ] [ 'BatchResponse' ] [ 'Fault' ] : #NEWLINE# #INDENT# request_id = response [ 'requestId' ] #NEWLINE# ret_dict [ request_id ] = request_id [ 'Detail' ] [ 'Error' ] [ 'Code' ] #NEWLINE# #UNINDENT# return ret_dict #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . get_response ( ) [ 'Fault' ] [ 'Detail' ] [ 'Error' ] [ 'Code' ]