redefine the rpc return code