Skip to content
Snippets Groups Projects
Commit 3f27fefd authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing status code and formatting

parent caa27824
No related branches found
No related tags found
No related merge requests found
<?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;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment