protected function handleHttpError($code)
    {
        try {
            $template = new Template('Error/' . $code, (defined('OCTO_ADMIN') && OCTO_ADMIN ? 'admin' : null));
            $template->set('page', ['title' => 'Error ' . $code . ' - ' . Response::$codes[$code]]);
            $content = $template->render();

            $this->response->setResponseCode($code);
            $this->response->setContent($content);
        } catch (\Exception $ex) {}

        return $this->response;
    }