summaryrefslogtreecommitdiffstats
path: root/lib/response.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-24 08:27:25 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-24 08:27:25 +0200
commit377e9a8677afc92bca61fb1bb055901db8457896 (patch)
tree43d98d7d0d00823714cc6b23aa9366dc93a42609 /lib/response.php
parent0bff53eb639eb0271e9c20df91a18247f88a3e1f (diff)
parentaaecfa18edf7c690f06d0ce460bd3a7a98269845 (diff)
downloadnextcloud-server-377e9a8677afc92bca61fb1bb055901db8457896.tar.gz
nextcloud-server-377e9a8677afc92bca61fb1bb055901db8457896.zip
Merge branch 'master' into doctrine
Diffstat (limited to 'lib/response.php')
-rw-r--r--lib/response.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/response.php b/lib/response.php
index 49d79fda709..674176d078b 100644
--- a/lib/response.php
+++ b/lib/response.php
@@ -11,6 +11,7 @@ class OC_Response {
const STATUS_NOT_MODIFIED = 304;
const STATUS_TEMPORARY_REDIRECT = 307;
const STATUS_NOT_FOUND = 404;
+ const STATUS_INTERNAL_SERVER_ERROR = 500;
/**
* @brief Enable response caching by sending correct HTTP headers
@@ -70,6 +71,9 @@ class OC_Response {
case self::STATUS_NOT_FOUND;
$status = $status . ' Not Found';
break;
+ case self::STATUS_INTERNAL_SERVER_ERROR;
+ $status = $status . ' Internal Server Error';
+ break;
}
header($protocol.' '.$status);
}