def METHOD_NAME(self, msg_obj, response_status_code, response_text):
    if response_status_code == 200 and re.match(SUCCESS_RESPONSE_REGEX, response_text):
        self.record_message_ids(msg_obj, response_text)
    else:
        self.handle_failure(msg_obj, response_status_code, response_text)