<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def status_message(self):
 """Return friendly response from API based on response code. """


        msg = None
        if self.last_ddns_response in response_messages.keys():
            return response_messages.get(self.last_ddns_response)

        if 'good' in self.last_ddns_response:
            ip = re.search(r'(\d{1,3}\.?){4}', self.last_ddns_response).group()
            msg = "SUCCESS: DNS hostname IP (%s) successfully updated." % ip
        elif 'nochg' in self.last_ddns_response:
            ip = re.search(r'(\d{1,3}\.?){4}', self.last_ddns_response).group()
            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