diff --git a/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php b/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php
index f23cb3163b0bf390761b3bf14ebf94403f7346f4..b6358254c2f4781ad44e867f27579124466cb7cd 100644
--- a/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php
+++ b/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php
@@ -842,8 +842,8 @@ abstract class ActionController implements ControllerInterface
             $content = $statusCode . ' ' . $statusMessage;
         }
         $response = $this->responseFactory
-            ->createResponse((int)$statusCode, $statusMessage)
-            ->withBody($this->streamFactory->createStream($content));
+            ->createResponse((int)$statusCode, (string)$statusMessage)
+            ->withBody($this->streamFactory->createStream((string)$content));
         throw new PropagateResponseException($response, 1476045871);
     }