diff --git a/radicale/app/__init__.py b/radicale/app/__init__.py index 5b083e99..a827b4f3 100644 --- a/radicale/app/__init__.py +++ b/radicale/app/__init__.py @@ -349,8 +349,7 @@ class Application( xml_declaration=True) return f.getvalue() - def _webdav_error_response(self, human_tag, - status=httputils.WEBDAV_PRECONDITION_FAILED[0]): + def _webdav_error_response(self, human_tag, status=client.CONFLICT): """Generate XML error response.""" headers = {"Content-Type": "text/xml; charset=%s" % self._encoding} content = self._write_xml_content(xmlutils.webdav_error(human_tag)) diff --git a/radicale/httputils.py b/radicale/httputils.py index 4142b304..eb4c75cb 100644 --- a/radicale/httputils.py +++ b/radicale/httputils.py @@ -38,9 +38,6 @@ NOT_FOUND = ( CONFLICT = ( client.CONFLICT, (("Content-Type", "text/plain"),), "Conflict in the request.") -WEBDAV_PRECONDITION_FAILED = ( - client.CONFLICT, (("Content-Type", "text/plain"),), - "WebDAV precondition failed.") METHOD_NOT_ALLOWED = ( client.METHOD_NOT_ALLOWED, (("Content-Type", "text/plain"),), "The method is not allowed on the requested resource.")