From dae65b93333088a9ba909fbddb8afdd07c9766bc Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Wed, 30 Aug 2017 10:24:07 -0400
Subject: [PATCH] Proper status code for unavailable message.

---
 module/VuFind/src/VuFind/Controller/ErrorController.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/Controller/ErrorController.php b/module/VuFind/src/VuFind/Controller/ErrorController.php
index 5ba9f87c3a2..57ceb4120fe 100644
--- a/module/VuFind/src/VuFind/Controller/ErrorController.php
+++ b/module/VuFind/src/VuFind/Controller/ErrorController.php
@@ -47,6 +47,7 @@ class ErrorController extends AbstractActionController
      */
     public function unavailableAction()
     {
-        // no special action necessary
+        $this->getResponse()->setStatusCode(503);
+        return new \Zend\View\Model\ViewModel();
     }
 }
-- 
GitLab