public function handleError($redirection, $error404)
    {
        if ($redirection) {
            $this->increaseCounter($redirection);

            return $redirection;
        } elseif ($error404) {
            $this->increaseCounter($error404);

            return $error404;
        }

        throw new NoResultException();
    }