EntityTooLarge.php 548 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\DAV\Connector\Sabre\Exception;
  8. /**
  9. * Entity Too Large
  10. *
  11. * This exception is thrown whenever a user tries to upload a file which exceeds hard limitations
  12. *
  13. */
  14. class EntityTooLarge extends \Sabre\DAV\Exception {
  15. /**
  16. * Returns the HTTP status code for this exception
  17. *
  18. * @return int
  19. */
  20. public function getHTTPCode() {
  21. return 413;
  22. }
  23. }