Conflict.php 610 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\DAV\Exception;
  4. use Sabre\DAV;
  5. /**
  6. * Conflict.
  7. *
  8. * A 409 Conflict is thrown when a user tried to make a directory over an existing
  9. * file or in a parent directory that doesn't exist.
  10. *
  11. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  12. * @author Evert Pot (http://evertpot.com/)
  13. * @license http://sabre.io/license/ Modified BSD License
  14. */
  15. class Conflict extends DAV\Exception
  16. {
  17. /**
  18. * Returns the HTTP statuscode for this exception.
  19. *
  20. * @return int
  21. */
  22. public function getHTTPCode()
  23. {
  24. return 409;
  25. }
  26. }