code: def set_codes(self, codes, reject=False):
          
  
          self.codes = set(codes)
          self.reject = reject
docs: Set the accepted or rejected codes codes list.
  
          :param codes: A list of the response codes.
          :param reject: If True, the listed codes will be rejected, and
                         the conversion will format as "-"; if False,
                         only the listed codes will be accepted, and the
                         conversion will format as "-" for all the
                         others.