summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-26 22:56:17 +0200
committerJulius Härtl <jus@bitgrid.net>2018-07-26 22:56:17 +0200
commit3e21033dfc1c6341a95b6fcf4350e809edba3773 (patch)
tree3661d191475fd8ecb495ae3953d32f7d72b74818 /ocs
parent6514bf1e18485bd5e94ea01c5e49ca2d74c3023b (diff)
downloadnextcloud-server-3e21033dfc1c6341a95b6fcf4350e809edba3773.tar.gz
nextcloud-server-3e21033dfc1c6341a95b6fcf4350e809edba3773.zip
Fix undefined constant error for STATUS_SERVICE_UNAVAILABLE
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 1f5d3e6619e..36749f44c1b 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -37,7 +37,7 @@ if (\OCP\Util::needUpgrade()
// 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;
}