From 3e21033dfc1c6341a95b6fcf4350e809edba3773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 26 Jul 2018 22:56:17 +0200 Subject: [PATCH] Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- ocs/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocs/v1.php b/ocs/v1.php index 1f5d3e6619e9d..36749f44c1b50 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -37,7 +37,7 @@ // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly http_response_code(503); - $response = new \OC\OCS\Result(null, OC_Response::STATUS_SERVICE_UNAVAILABLE, 'Service unavailable'); + $response = new \OC\OCS\Result(null, 503, 'Service unavailable'); OC_API::respond($response, OC_API::requestedFormat()); exit; }