Completed
Branch dev (276354)
by Raffael
15:43
created

NotFound::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * balloon
7
 *
8
 * @copyright   Copryright (c) 2012-2018 gyselroth GmbH (https://gyselroth.com)
9
 * @license     GPL-3.0 https://opensource.org/licenses/GPL-3.0
10
 */
11
12
namespace Balloon\Filesystem\Exception;
13
14
use Micro\Http\ExceptionInterface;
15
16
class NotFound extends \Sabre\DAV\Exception\NotFound implements ExceptionInterface
17
{
18
    //Error codes are not in order due backwards compatibility
19
    const NODE_NOT_FOUND = 49;
20
    const SHARE_NOT_FOUND = 50;
21
    const REFERENCE_NOT_FOUND = 51;
22
    const NOT_ALL_NODES_FOUND = 52;
23
    const DESTINATION_NOT_FOUND = 54;
24
    const PARENT_NOT_FOUND = 55;
25
    const CONTENTS_NOT_FOUND = 57;
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getStatusCode(): int
31
    {
32
        return 404;
33
    }
34
}
35