6 * The 405 is thrown when a client tried to create a directory on an already existing directory
10 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
11 * @author Evert Pot (http://www.rooftopsolutions.nl/)
12 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
14 class Sabre_DAV_Exception_MethodNotAllowed extends Sabre_DAV_Exception {
17 * Returns the HTTP statuscode for this exception
21 public function getHTTPCode() {
28 * This method allows the exception to return any extra HTTP response headers.
30 * The headers must be returned as an array.
32 * @param Sabre_DAV_Server $server
35 public function getHTTPHeaders(Sabre_DAV_Server $server) {
37 $methods = $server->getAllowedMethods($server->getRequestUri());
40 'Allow' => strtoupper(implode(', ',$methods)),