source: pmb4.1/trunk/fuentes/pmb/admin/connecteurs/out/webdav/lib/Sabre/DAV/Exception/NotFound.php @ 478

Last change on this file since 478 was 478, checked in by mabarracus, 4 years ago

copy trusty code 4.1

  • Property svn:executable set to *
File size: 579 bytes
Line 
1<?php
2
3namespace Sabre\DAV\Exception;
4
5/**
6 * NotFound
7 *
8 * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404
9 *
10 * @copyright Copyright (C) 2007-2013 Rooftop Solutions. All rights reserved.
11 * @author Evert Pot (http://www.rooftopsolutions.nl/)
12 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
13 */
14class NotFound extends \Sabre\DAV\Exception {
15
16    /**
17     * Returns the HTTP statuscode for this exception
18     *
19     * @return int
20     */
21    public function getHTTPCode() {
22
23        return 404;
24
25    }
26
27}
28
Note: See TracBrowser for help on using the repository browser.