'Sets a balancer member\'s status attributes amongst pre-mapped values.'

def set_member_status(self, values):

    values_mapping = {'disabled': '&w_status_D', 'drained': '&w_status_N', 'hot_standby': '&w_status_H', 'ignore_errors': '&w_status_I'}
    request_body = regexp_extraction(self.management_url, EXPRESSION, 1)
    for k in values_mapping.keys():
        if values[str(k)]:
            request_body = ((request_body + str(values_mapping[k])) + '=1')
        else:
            request_body = ((request_body + str(values_mapping[k])) + '=0')
    response = fetch_url(self.module, self.management_url, data=str(request_body))
    try:
        assert (response[1]['status'] == 200)
    except AssertionError:
        self.module.fail_json(msg=((('Could    not    set    the    member    status!    ' + self.host) + '    ') + response[1]['status']))
