diff options
Diffstat (limited to 'calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/NotFound.php')
-rw-r--r-- | calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/NotFound.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/NotFound.php b/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/NotFound.php new file mode 100644 index 0000000..210f21f --- /dev/null +++ b/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/NotFound.php @@ -0,0 +1,28 @@ +<?php + +namespace OldSabre\DAV\Exception; + +/** + * NotFound + * + * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404 + * + * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/). + * @author Evert Pot (http://evertpot.com/) + * @license http://sabre.io/license/ Modified BSD License + */ +class NotFound extends \OldSabre\DAV\Exception { + + /** + * Returns the HTTP statuscode for this exception + * + * @return int + */ + public function getHTTPCode() { + + return 404; + + } + +} + |