2013-10-07 17:11:47 +04:00
|
|
|
<?php
|
2015-02-12 14:29:01 +03:00
|
|
|
|
|
|
|
|
|
|
|
namespace OC\Connector\Sabre\Exception;
|
|
|
|
|
2015-02-26 13:37:37 +03:00
|
|
|
/**
|
|
|
|
* Entity Too Large
|
|
|
|
*
|
|
|
|
* This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
|
|
|
|
*
|
|
|
|
*/
|
2015-02-12 14:29:01 +03:00
|
|
|
class EntityTooLarge extends \Sabre\DAV\Exception {
|
2013-10-07 17:11:47 +04:00
|
|
|
|
2013-10-08 17:40:42 +04:00
|
|
|
/**
|
|
|
|
* Returns the HTTP status code for this exception
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getHTTPCode() {
|
2013-10-07 17:11:47 +04:00
|
|
|
|
2013-10-08 17:40:42 +04:00
|
|
|
return 413;
|
2013-10-07 17:11:47 +04:00
|
|
|
|
2013-10-08 17:40:42 +04:00
|
|
|
}
|
2013-10-07 17:11:47 +04:00
|
|
|
|
|
|
|
}
|