mirror of
https://github.com/nextcloud/server.git
synced 2025-02-06 01:20:16 +00:00
26 lines
548 B
PHP
26 lines
548 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
namespace OCA\DAV\Connector\Sabre\Exception;
|
|
|
|
/**
|
|
* Entity Too Large
|
|
*
|
|
* This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
|
|
*
|
|
*/
|
|
class EntityTooLarge extends \Sabre\DAV\Exception {
|
|
|
|
/**
|
|
* Returns the HTTP status code for this exception
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getHTTPCode() {
|
|
return 413;
|
|
}
|
|
}
|