2013-10-07 09:11:47 -04:00
|
|
|
<?php
|
2024-05-27 11:39:07 -04:00
|
|
|
|
2015-03-26 06:44:34 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-03-26 06:44:34 -04:00
|
|
|
*/
|
2015-08-30 13:13:01 -04:00
|
|
|
namespace OCA\DAV\Connector\Sabre\Exception;
|
2015-02-12 06:29:01 -05:00
|
|
|
|
2015-02-26 05:37:37 -05:00
|
|
|
/**
|
|
|
|
|
* Entity Too Large
|
|
|
|
|
*
|
|
|
|
|
* This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
|
|
|
|
|
*
|
|
|
|
|
*/
|
2015-02-12 06:29:01 -05:00
|
|
|
class EntityTooLarge extends \Sabre\DAV\Exception {
|
2013-10-07 09:11:47 -04:00
|
|
|
|
2013-10-08 09:40:42 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the HTTP status code for this exception
|
|
|
|
|
*
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
|
|
|
|
public function getHTTPCode() {
|
|
|
|
|
return 413;
|
|
|
|
|
}
|
2013-10-07 09:11:47 -04:00
|
|
|
}
|