server/lib/private/connector/sabre/exception/entitytoolarge.php

23 lines
358 B
PHP
Raw Normal View History

<?php
/**
2013-10-08 13:40:42 +00:00
* 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 {
2013-10-08 13:40:42 +00:00
/**
* Returns the HTTP status code for this exception
*
* @return int
*/
public function getHTTPCode() {
2013-10-08 13:40:42 +00:00
return 413;
2013-10-08 13:40:42 +00:00
}
}