aboutsummaryrefslogtreecommitdiffstats
path: root/lib/connector/sabre/ServiceUnavailable.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-11 10:00:12 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-11 10:00:12 +0100
commit364b1cd3915ab8d33f1a63f598be3acb4bfcf86a (patch)
tree401f02cc3a6b8d9ba28620fcd9ec6a31ef381ab7 /lib/connector/sabre/ServiceUnavailable.php
parentbfc55fef89089fc43c6a352de860374ca3fcfd53 (diff)
parent60489764f37a6f344fa20e361a26c7a6006f9c97 (diff)
downloadnextcloud-server-364b1cd3915ab8d33f1a63f598be3acb4bfcf86a.tar.gz
nextcloud-server-364b1cd3915ab8d33f1a63f598be3acb4bfcf86a.zip
Merge branch 'master' into fixing-998-master
Conflicts: apps/files/js/files.js
Diffstat (limited to 'lib/connector/sabre/ServiceUnavailable.php')
-rw-r--r--lib/connector/sabre/ServiceUnavailable.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/connector/sabre/ServiceUnavailable.php b/lib/connector/sabre/ServiceUnavailable.php
new file mode 100644
index 00000000000..c1cc815c989
--- /dev/null
+++ b/lib/connector/sabre/ServiceUnavailable.php
@@ -0,0 +1,22 @@
+<?php
+/**
+ * ownCloud
+ *
+ * @author Thomas Müller
+ * @copyright 2013 Thomas Müller <thomas.mueller@tmit.eu>
+ *
+ * @license AGPL3
+ */
+
+class Sabre_DAV_Exception_ServiceUnavailable extends Sabre_DAV_Exception {
+
+ /**
+ * Returns the HTTP statuscode for this exception
+ *
+ * @return int
+ */
+ public function getHTTPCode() {
+
+ return 503;
+ }
+}