public static RpcResponse rpcResponse(Status status, @Nullable Object message) {
        if (status.isOk()) {
            return RpcResponse.of(message);
        } else {
            return RpcResponse.ofFailure(status.asException());
        }
    }
public static RpcResponse rpcResponse ( Status status , @ Nullable Object message ) { if ( status . isOk ( ) ) { return RpcResponse . of ( message ) ; } else { return RpcResponse . ofFailure ( status . asException ( ) ) ; } }
Returns a {@link RpcResponse} corresponding to the given {@link Status} generated by the server.