@Override
    public Map<Errors, Integer> errorCounts() {
        return errorCounts(Errors.forCode(data.errorCode()));
    }
Possible error codes:

  - {@link Errors#NOT_COORDINATOR}
  - {@link Errors#COORDINATOR_NOT_AVAILABLE}
  - {@link Errors#COORDINATOR_LOAD_IN_PROGRESS}
  - {@link Errors#INVALID_PRODUCER_ID_MAPPING}
  - {@link Errors#INVALID_PRODUCER_EPOCH} // for version <=1
  - {@link Errors#PRODUCER_FENCED}
  - {@link Errors#INVALID_TXN_STATE}
  - {@link Errors#GROUP_AUTHORIZATION_FAILED}
  - {@link Errors#TRANSACTIONAL_ID_AUTHORIZATION_FAILED}
clients/src/main/java/org/apache/kafka/common/requests/AddOffsetsToTxnResponse.java