code: protected function setErrorMessage($config)
      {
          if (isset($config["errorMsg"])) {
              $msg = $config["errorMsg"];
          } else {
              $msg = "Rate limit exceeded, wait %min% minutes.";
          }
  
          $replace = array(
              "%min%" => intval(ceil($config["blockDuration"] / 60)),
              "%cnt%" => $config["count"],
          );
  
          $this->errorMessage = str_replace(array_keys($replace), $replace, $msg);
      }
docs: Sets the error message that will be retrievable via {@see RateLimit::getError()}
  
  @param array $config Limit configuration