header = $header; } /** * Returns the HTTP statuscode for this exception. * * @return int */ public function getHTTPCode() { return 412; } /** * This method allows the exception to include additional information into the WebDAV error response. */ public function serialize(DAV\Server $server, \DOMElement $errorNode) { if ($this->header) { $prop = $errorNode->ownerDocument->createElement('s:header'); $prop->nodeValue = $this->header; $errorNode->appendChild($prop); } } }