docs: def check_error(self, response, status, err_cd):
          " Check an error in the response."
  
          if 'status' not in response:
              return False
  
          if response['status'] != status:
              return False
  
          if 'msgs' not in response:
              return False
  
          if not isinstance(response['msgs'], list):
              return False
  
          for msg in response['msgs']:
  
              if 'LVL' in msg and msg['LVL'] != 'ERROR':
                  continue
  
              if 'ERR_CD' in msg and msg['ERR_CD'] == err_cd:
                  return True
  
          return False