Blame view

sources/3rdparty/sabre/dav/lib/Sabre/DAV/Exception/Conflict.php 584 Bytes
03e52840d   Kload   Init
1
  <?php
6d9380f96   Cédric Dupont   Update sources OC...
2
  namespace Sabre\DAV\Exception;
03e52840d   Kload   Init
3
4
5
6
7
8
  /**
   * Conflict
   *
   * A 409 Conflict is thrown when a user tried to make a directory over an existing
   * file or in a parent directory that doesn't exist.
   *
6d9380f96   Cédric Dupont   Update sources OC...
9
10
11
   * @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/).
   * @author Evert Pot (http://evertpot.com/)
   * @license http://sabre.io/license/ Modified BSD License
03e52840d   Kload   Init
12
   */
6d9380f96   Cédric Dupont   Update sources OC...
13
  class Conflict extends \Sabre\DAV\Exception {
03e52840d   Kload   Init
14
15
16
17
18
19
20
21
22
23
24
25
26
  
      /**
       * Returns the HTTP statuscode for this exception
       *
       * @return int
       */
      public function getHTTPCode() {
  
          return 409;
  
      }
  
  }