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)));
throwCConnectionFailed(strprintf("couldn't connect to server: %s (code %d)\n(makesureserverisrunningandyouareconnectingtothecorrectRPCport)", http_errorstring(response.error), response.error));
elseif(response.status==HTTP_UNAUTHORIZED)
elseif(response.status==HTTP_UNAUTHORIZED)
throwstd::runtime_error("incorrect rpcuser or rpcpassword (authorization failed)");
throwstd::runtime_error("incorrect rpcuser or rpcpassword (authorization failed)");