def rpcexec(self, payload):
log.debug(json.dumps(payload))<EOL>query = requests.post(self.url, json=payload, proxies=self.proxies())<EOL>if query.status_code != <NUM_LIT:200>:  <EOL><INDENT>raise HttpInvalidStatusCode(<EOL>"<STR_LIT>".format(query.status_code)<EOL>)<EOL><DEDENT>return query.text<EOL>
Execute a call by sending the payload

            :param json payload: Payload data
            :raises ValueError: if the server does not respond in proper JSON
                                format
            :raises HttpInvalidStatusCode: if the server returns a status code
                that is not 200