Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-14 16:58:34 +0400
committerVincent Petry <pvince81@owncloud.com>2014-03-15 00:05:15 +0400
commitb619ff6076f200e2aee62758e1e3ea95df1c4a63 (patch)
tree0c9e65a7f86018c2aa998d4ea488c6d97ec9f330 /lib/private/response.php
parent3c46dcd7ddde403cdc89abdaabd3879fc71d39b9 (diff)
Return 503 when a config/data dir error exists
Diffstat (limited to 'lib/private/response.php')
-rw-r--r--lib/private/response.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/response.php b/lib/private/response.php
index 71c538fb311..983c682bf3f 100644
--- a/lib/private/response.php
+++ b/lib/private/response.php
@@ -12,6 +12,7 @@ class OC_Response {
const STATUS_TEMPORARY_REDIRECT = 307;
const STATUS_NOT_FOUND = 404;
const STATUS_INTERNAL_SERVER_ERROR = 500;
+ const STATUS_SERVICE_UNAVAILABLE = 503;
/**
* @brief Enable response caching by sending correct HTTP headers
@@ -74,6 +75,9 @@ class OC_Response {
case self::STATUS_INTERNAL_SERVER_ERROR;
$status = $status . ' Internal Server Error';
break;
+ case self::STATUS_SERVICE_UNAVAILABLE;
+ $status = $status . ' Service Unavailable';
+ break;
}
header($protocol.' '.$status);
}