Blame view

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