docs: public static String errorCodeString(int errorCode) {
      switch (errorCode) {
        case ProtocolConstants.ErrorCode.SERVER_ERROR:
          return "SERVER_ERROR";
        case ProtocolConstants.ErrorCode.PROTOCOL_ERROR:
          return "PROTOCOL_ERROR";
        case ProtocolConstants.ErrorCode.AUTH_ERROR:
          return "AUTH_ERROR";
        case ProtocolConstants.ErrorCode.UNAVAILABLE:
          return "UNAVAILABLE";
        case ProtocolConstants.ErrorCode.OVERLOADED:
          return "OVERLOADED";
        case ProtocolConstants.ErrorCode.IS_BOOTSTRAPPING:
          return "IS_BOOTSTRAPPING";
        case ProtocolConstants.ErrorCode.TRUNCATE_ERROR:
          return "TRUNCATE_ERROR";
        case ProtocolConstants.ErrorCode.WRITE_TIMEOUT:
          return "WRITE_TIMEOUT";
        case ProtocolConstants.ErrorCode.READ_TIMEOUT:
          return "READ_TIMEOUT";
        case ProtocolConstants.ErrorCode.READ_FAILURE:
          return "READ_FAILURE";
        case ProtocolConstants.ErrorCode.FUNCTION_FAILURE:
          return "FUNCTION_FAILURE";
        case ProtocolConstants.ErrorCode.WRITE_FAILURE:
          return "WRITE_FAILURE";
        case ProtocolConstants.ErrorCode.SYNTAX_ERROR:
          return "SYNTAX_ERROR";
        case ProtocolConstants.ErrorCode.UNAUTHORIZED:
          return "UNAUTHORIZED";
        case ProtocolConstants.ErrorCode.INVALID:
          return "INVALID";
        case ProtocolConstants.ErrorCode.CONFIG_ERROR:
          return "CONFIG_ERROR";
        case ProtocolConstants.ErrorCode.ALREADY_EXISTS:
          return "ALREADY_EXISTS";
        case ProtocolConstants.ErrorCode.UNPREPARED:
          return "UNPREPARED";
        default:
          return "0x" + Integer.toHexString(errorCode);
      }
    }