diff options
Diffstat (limited to 'calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/Forbidden.php')
-rw-r--r-- | calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/Forbidden.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/Forbidden.php b/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/Forbidden.php new file mode 100644 index 0000000..003d86b --- /dev/null +++ b/calendar/lib/SabreDAV/lib/OldSabre/DAV/Exception/Forbidden.php @@ -0,0 +1,27 @@ +<?php + +namespace OldSabre\DAV\Exception; + +/** + * Forbidden + * + * This exception is thrown whenever a user tries to do an operation he's not allowed to + * + * @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 Forbidden extends \OldSabre\DAV\Exception { + + /** + * Returns the HTTP statuscode for this exception + * + * @return int + */ + public function getHTTPCode() { + + return 403; + + } + +} |