diff --git a/module/VuFind/src/VuFind/Bootstrapper.php b/module/VuFind/src/VuFind/Bootstrapper.php
index 6168970c5093be8ec295485593b44aa24969f847..5c0fa68edf2a57712054e0a01e57dc5e3791a0c4 100644
--- a/module/VuFind/src/VuFind/Bootstrapper.php
+++ b/module/VuFind/src/VuFind/Bootstrapper.php
@@ -374,7 +374,7 @@ class Bootstrapper
             if ($exception instanceof \VuFind\Exception\HttpStatusInterface) {
                 $response = $e->getResponse();
                 if (!$response) {
-                    $response = new HttpResponse();
+                    $response = new \Laminas\Http\Response();
                     $e->setResponse($response);
                 }
                 $response->setStatusCode($exception->getHttpStatus());