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