NotFound.php 564 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\DAV\Exception;
  4. use Sabre\DAV;
  5. /**
  6. * NotFound.
  7. *
  8. * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404
  9. *
  10. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  11. * @author Evert Pot (http://evertpot.com/)
  12. * @license http://sabre.io/license/ Modified BSD License
  13. */
  14. class NotFound extends DAV\Exception
  15. {
  16. /**
  17. * Returns the HTTP statuscode for this exception.
  18. *
  19. * @return int
  20. */
  21. public function getHTTPCode()
  22. {
  23. return 404;
  24. }
  25. }