@property
    def status_message(self):
        """Return friendly response from API based on response code. """

        msg = None
        if error_messages.keys() in self.last_ddns_response:
            msg = error_messages.get(self.last_ddns_response)
        elif self.last_ddns_response == 'OK':
            msg = "SUCCESS: DNS hostname successfully updated."
        elif 'good' in self.last_ddns_response \
                or 'nochg' in self.last_ddns_response:
            ip = re.search(r'(\d{1,3}\.?){4}', self.last_ddns_response).group()
            if 'good' in self.last_ddns_response:
                msg = "SUCCESS: DNS hostname IP (%s) successfully updated." % \
                      ip
            else:
                msg = "SUCCESS: IP address (%s) is up to date, nothing was " \
                      "changed. Additional 'nochg' updates may be considered" \
                      " abusive." % ip
        else:
            msg = "ERROR: Ooops! Something went wrong !!!"

        return msg
dataset/ETHPy150Open pv8/noipy/noipy/dnsupdater.py/DnsUpdaterPlugin.status_message/swapped operands of `in`