docs: def check_errors(self, response):
          " Check some common errors."
  
          # Read content.
          content = response.content
  
          if 'status' not in content:
              raise self.GeneralError('We expect a status field.')
  
          # Return the decoded content if status is success.
          if content['status'] == 'success':
              response._content = content
              return
  
          # Expect messages if some kind of error.
          if 'msgs' not in content:
              raise self.GeneralError('We expcet messages in case of error.')
  
          try:
              messages = list(content['msgs'])
          except:
              raise self.GeneralError("Messages must be a list.")
  
          # Try to found common errors in the response.
          for msg in messages:
  
              if 'LVL' in msg and msg['LVL'] == 'ERROR':
  
                  # Check if is a not found error.
                  if msg['ERR_CD'] == 'NOT_FOUND':
                      raise self.NotFoundError(msg['INFO'])
  
                  # Duplicated target.
                  elif msg['ERR_CD'] == 'TARGET_EXISTS':
                      raise self.TargetExistsError(msg['INFO'])
  
                  # Some other error.
                  else:
                      raise self.DynectError(msg['INFO'])
  
          raise self.GeneralError("We need at least one error message.")