Commit 8e5e357c by rfkelly0

DAVFS: convert HTTP error 405 to ResourceInvalidError

parent 58fd538a
......@@ -715,7 +715,7 @@ def raise_generic_error(response,opname,path):
raise ResourceLockedError(path,opname=opname,details=response)
if response.status == 501:
raise UnsupportedError(opname,details=response)
if response.status == 403:
if response.status == 405:
raise ResourceInvalidError(path,opname=opname,details=response)
raise OperationFailedError(opname,msg="Server Error: %s" % (response.status,),details=response)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment