ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MethodNotAllowed.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV\Exception;
4 
5 use 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 }
getHTTPHeaders(\Sabre\DAV\Server $server)
This method allows the exception to return any extra HTTP response headers.
$server
Definition: sabredav.php:48
Main Exception class.
Definition: Exception.php:18
getHTTPCode()
Returns the HTTP statuscode for this exception.
Main DAV server class.
Definition: Server.php:23