1<?php
2
3namespace Sabre\DAV\Exception;
4
5use Sabre\DAV;
6
7/**
8 * ServiceUnavailable
9 *
10 * This exception is thrown in case the service
11 * is currently not available (e.g. down for maintenance).
12 *
13 * @author Thomas Müller <thomas.mueller@tmit.eu>
14 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
15 * @license http://sabre.io/license/ Modified BSD License
16 */
17class ServiceUnavailable extends DAV\Exception {
18
19    /**
20     * Returns the HTTP statuscode for this exception
21     *
22     * @return int
23     */
24    function getHTTPCode() {
25
26        return 503;
27
28    }
29
30}
31