summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/ServiceUnavailable.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/connector/sabre/ServiceUnavailable.php')
-rw-r--r--lib/private/connector/sabre/ServiceUnavailable.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/ServiceUnavailable.php b/lib/private/connector/sabre/ServiceUnavailable.php
new file mode 100644
index 00000000000..c1cc815c989
--- /dev/null
+++ b/lib/private/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;
+ }
+}