code: def code(self, value):
          
          if value not in list(defines.Codes.LIST.keys()) and value is not None:
              raise AttributeError
          self._code = value
docs: Set the code of the message.
  
          :type value: Codes
          :param value: the code
          :raise AttributeError: if value is not a valid code