Code snippet from rippled:
https://github.com/XRPLF/rippled/blob/develop/src/xrpld/rpc/handlers/GatewayBalances.cpp#L129
rippled returns rpcINVALID_HOTWALLET if api_version is 1, returns rpcINVALID_PARAMS if api_version is larger than 1.
Clio returns rpcINVALID_PARAMS regardless the api_version value.