code: protected function error($type)
      {
          $filepath = $this->config['basedir'].'cora/app/Error.php';
  
          if (file_exists($filepath)) {
              $error = new \Cora\App\Error($this->container);
          }
          else {
              $error = new \Cora\Error($this->container);
          }
          $error->handle($type);
      }
docs: Sample Types:
  401 = Access Denied
  404 = Not Found