You don't want to redirect to another URL if you expect a 404. There is no 404 response code and it's not very common to redirect.
Normal behavior: just show a 404 page on the current URL.
$this->url_controller = new \Mini\Controller\ErrorController();
$this->url_controller->notFound();
Then I will be able to set a customised error page for a 404. Direct access to /error should be blocked.