diff options
Diffstat (limited to 'vendor/sabre/dav/lib/DAV/Exception/ServiceUnavailable.php')
-rw-r--r-- | vendor/sabre/dav/lib/DAV/Exception/ServiceUnavailable.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/sabre/dav/lib/DAV/Exception/ServiceUnavailable.php b/vendor/sabre/dav/lib/DAV/Exception/ServiceUnavailable.php new file mode 100644 index 000000000..31df606e2 --- /dev/null +++ b/vendor/sabre/dav/lib/DAV/Exception/ServiceUnavailable.php @@ -0,0 +1,30 @@ +<?php + +namespace Sabre\DAV\Exception; + +use Sabre\DAV; + +/** + * ServiceUnavailable + * + * This exception is thrown in case the service + * is currently not available (e.g. down for maintenance). + * + * @author Thomas Müller <thomas.mueller@tmit.eu> + * @copyright Copyright (C) fruux GmbH (https://fruux.com/) + * @license http://sabre.io/license/ Modified BSD License + */ +class ServiceUnavailable extends DAV\Exception { + + /** + * Returns the HTTP statuscode for this exception + * + * @return int + */ + function getHTTPCode() { + + return 503; + + } + +} |