ServiceUnavailable.php 608 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. namespace Sabre\DAV\Exception;
  4. use Sabre\DAV;
  5. /**
  6. * ServiceUnavailable.
  7. *
  8. * This exception is thrown in case the service
  9. * is currently not available (e.g. down for maintenance).
  10. *
  11. * @author Thomas Müller <thomas.mueller@tmit.eu>
  12. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  13. * @license http://sabre.io/license/ Modified BSD License
  14. */
  15. class ServiceUnavailable 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 503;
  25. }
  26. }