diff --git a/modules/doc/application/controllers/SearchController.php b/modules/doc/application/controllers/SearchController.php index e896c31f6..5d71681eb 100644 --- a/modules/doc/application/controllers/SearchController.php +++ b/modules/doc/application/controllers/SearchController.php @@ -92,9 +92,6 @@ class Doc_SearchController extends DocController return $path; } } - throw new Zend_Controller_Action_Exception( - $this->translate('Documentation for Icinga Web 2 is not available'), - 404 - ); + $this->httpNotFound($this->translate('Documentation for Icinga Web 2 is not available')); } }