code: private void replyError() {
      Error error = Preconditions.checkNotNull(mContext.getError());
      if (error.isNotifyClient()) {
        mResponseObserver.onError(error.getCause().toGrpcStatusException());
      }
    }
docs: Writes an error response.