public static PipeSubscribeHeartbeatResp toTPipeSubscribeResp(final TSStatus status) {
    final PipeSubscribeHeartbeatResp resp = new PipeSubscribeHeartbeatResp();

    resp.status = status;
    resp.version = PipeSubscribeResponseVersion.VERSION_1.getVersion();
    resp.type = PipeSubscribeResponseType.ACK.getType();

    return resp;
  }
Serialize the incoming parameters into `PipeSubscribeHeartbeatResp`, called by the subscription
server.
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/subscription/payload/response/PipeSubscribeHeartbeatResp.java