]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing status code and formatting
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 8 Oct 2013 13:40:42 +0000 (15:40 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 8 Oct 2013 13:40:42 +0000 (15:40 +0200)
lib/private/connector/sabre/exception/entitytoolarge.php
lib/private/connector/sabre/exception/unsupportedmediatype.php

index aa9b37a04964bea3108b152d8c07f8f3615fc24d..2bda51f2f3ee5f418575a9a3c82170b3c44312cf 100644 (file)
@@ -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;
-    }
+       }
 
 }
index a8b561280c1856789e3474d6766b4a565b8700ad..95d6a8cc651f6423b3ecc770d37648180e0c2bf0 100644 (file)
@@ -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;
 
-    }
+       }
 
 }