ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MethodNotAllowed.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAV\Exception;
4
5use Sabre\DAV;
6
17
23 function getHTTPCode() {
24
25 return 405;
26
27 }
28
38
39 $methods = $server->getAllowedMethods($server->getRequestUri());
40
41 return [
42 'Allow' => strtoupper(implode(', ', $methods)),
43 ];
44
45 }
46
47}
An exception for terminatinating execution or to throw for unit testing.
getHTTPHeaders(\Sabre\DAV\Server $server)
This method allows the exception to return any extra HTTP response headers.
getHTTPCode()
Returns the HTTP statuscode for this exception.
Main Exception class.
Definition: Exception.php:18
Main DAV server class.
Definition: Server.php:23
$server
Definition: sabredav.php:48