1<?php 2 3namespace Sabre\DAV\Exception; 4 5use Sabre\DAV; 6 7/** 8 * Forbidden 9 * 10 * This exception is thrown whenever a user tries to do an operation he's not allowed to 11 * 12 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/). 13 * @author Evert Pot (http://evertpot.com/) 14 * @license http://sabre.io/license/ Modified BSD License 15 */ 16class Forbidden extends DAV\Exception { 17 18 /** 19 * Returns the HTTP statuscode for this exception 20 * 21 * @return int 22 */ 23 function getHTTPCode() { 24 25 return 403; 26 27 } 28 29} 30