/**
  * @param int $statusCode
  * @param \Exception $exception
  * @return string
  */
 protected function renderStatically($statusCode, \Exception $exception)
 {
     $requestMediaType = $this->getRequestMediaType();
     if ($requestMediaType === 'application/json') {
         return $this->renderStaticallyJson($statusCode, $exception);
     } else {
         return parent::renderStatically($statusCode, $exception);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function echoExceptionCLI($exception)
 {
     $this->sendExceptionToSentry($exception);
     parent::echoExceptionCLI($exception);
 }