summaryrefslogtreecommitdiffstats
path: root/lib/private/connector/sabre/exception/entitytoolarge.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/connector/sabre/exception/entitytoolarge.php')
-rw-r--r--lib/private/connector/sabre/exception/entitytoolarge.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/exception/entitytoolarge.php b/lib/private/connector/sabre/exception/entitytoolarge.php
new file mode 100644
index 00000000000..2bda51f2f3e
--- /dev/null
+++ b/lib/private/connector/sabre/exception/entitytoolarge.php
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * Entity Too Large
+ *
+ * This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
+ *
+ */
+class OC_Connector_Sabre_Exception_EntityTooLarge extends Sabre_DAV_Exception {
+
+ /**
+ * Returns the HTTP status code for this exception
+ *
+ * @return int
+ */
+ public function getHTTPCode() {
+
+ return 413;
+
+ }
+
+}