diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php
index 7a18ccd..2f5d827 100644
--- a/src/Exceptions/Handler.php
+++ b/src/Exceptions/Handler.php
@@ -7,7 +7,7 @@
 use Psr\Http\Message\ServerRequestInterface;
 use Rareloop\Lumberjack\Application;
 use Rareloop\Lumberjack\Facades\Config;
-use Symfony\Component\ErrorHandler\ErrorHandler as SymfonyExceptionHandler;
+use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
 use Symfony\Component\ErrorHandler\Exception\FlattenException;
 use Zend\Diactoros\Response\HtmlResponse;
 
@@ -38,9 +38,9 @@ public function render(ServerRequestInterface $request, Exception $e) : Response
     {
         $e = FlattenException::create($e);
 
-        $handler = new SymfonyExceptionHandler(null, Config::get('app.debug', false));
+        $htmlRenderer = new HtmlErrorRenderer(Config::get('app.debug', false));
 
-        return new HtmlResponse($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
+        return new HtmlResponse($htmlRenderer->getBody($e), $e->getStatusCode(), $e->getHeaders());
     }
 
     protected function shouldNotReport(Exception $e)