1<?php 2 3namespace Sabre\DAV\Exception; 4 5use Sabre\DAV; 6 7/** 8 * NotFound 9 * 10 * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404 11 * 12 * @copyright Copyright (C) fruux GmbH (https://fruux.com/) 13 * @author Evert Pot (http://evertpot.com/) 14 * @license http://sabre.io/license/ Modified BSD License 15 */ 16class NotFound extends DAV\Exception { 17 18 /** 19 * Returns the HTTP statuscode for this exception 20 * 21 * @return int 22 */ 23 function getHTTPCode() { 24 25 return 404; 26 27 } 28 29} 30