protected function render($template, $data = [], $status = 200)
    {
        $rendered = View::render($template, $data);

        $this->response->getBody()->write($rendered);

        return $this->getResponse()
            ->withStatus($status)
            ->withHeader('Content-Type', 'text/html; charset=utf-8');
    }