fix up all return codes for rpcRegister