throwCConnectionFailed(strprintf("couldn't connect to server(%d %s)", response.error, http_errorstring(response.error)));
throwCConnectionFailed(strprintf("couldn't connect to server\n(make sure server is running and you are connecting to the correct RPC port: %d %s)", response.error, http_errorstring(response.error)));
elseif(response.status==HTTP_UNAUTHORIZED)
throwruntime_error("incorrect rpcuser or rpcpassword (authorization failed)");