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.

def set_codes(self, codes, reject=False):
        """
        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.
        """

        self.codes = set(codes)
        self.reject = reject