aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-08 15:40:42 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-08 15:40:42 +0200
commit3f27fefdbe1342701161bf0949dd719f34dab76d (patch)
treeb6fdd6ef83abba7d1f15dfe35d6082bd25117ed0 /lib
parentcaa27824a94e3af757ea33b01b5682ef963ae714 (diff)
downloadnextcloud-server-3f27fefdbe1342701161bf0949dd719f34dab76d.tar.gz
nextcloud-server-3f27fefdbe1342701161bf0949dd719f34dab76d.zip
fixing status code and formatting
Diffstat (limited to 'lib')
-rw-r--r--lib/private/connector/sabre/exception/entitytoolarge.php19
-rw-r--r--lib/private/connector/sabre/exception/unsupportedmediatype.php16
2 files changed, 17 insertions, 18 deletions
diff --git a/lib/private/connector/sabre/exception/entitytoolarge.php b/lib/private/connector/sabre/exception/entitytoolarge.php
index aa9b37a0496..2bda51f2f3e 100644
--- a/lib/private/connector/sabre/exception/entitytoolarge.php
+++ b/lib/private/connector/sabre/exception/entitytoolarge.php
@@ -1,23 +1,22 @@
<?php
/**
- * EntityTooLarge
+ * 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 statuscode for this exception
- *
- * @return int
- */
- public function getHTTPCode() {
+ /**
+ * Returns the HTTP status code for this exception
+ *
+ * @return int
+ */
+ public function getHTTPCode() {
-// return 413;
+ return 413;
- return 450;
- }
+ }
}
diff --git a/lib/private/connector/sabre/exception/unsupportedmediatype.php b/lib/private/connector/sabre/exception/unsupportedmediatype.php
index a8b561280c1..95d6a8cc651 100644
--- a/lib/private/connector/sabre/exception/unsupportedmediatype.php
+++ b/lib/private/connector/sabre/exception/unsupportedmediatype.php
@@ -8,15 +8,15 @@
*/
class OC_Connector_Sabre_Exception_UnsupportedMediaType extends Sabre_DAV_Exception {
- /**
- * Returns the HTTP status code for this exception
- *
- * @return int
- */
- public function getHTTPCode() {
+ /**
+ * Returns the HTTP status code for this exception
+ *
+ * @return int
+ */
+ public function getHTTPCode() {
- return 415;
+ return 415;
- }
+ }
}