code: public function createNotFoundException($message, \Exception $lastException = null) {
          $exception = new NotFoundHttpException($message, $lastException);
  
          return $this->container->minionError($exception, 404);
      }
docs: {@inheritdoc}