fixing status code and formatting

remotes/origin/stable6
Thomas Müller 12 years ago
parent caa27824a9
commit 3f27fefdbe
  1. 19
      lib/private/connector/sabre/exception/entitytoolarge.php
  2. 16
      lib/private/connector/sabre/exception/unsupportedmediatype.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;
}
}
}

@ -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;
}
}
}

Loading…
Cancel
Save