Commit 47e3bd47 authored by davigonz's avatar davigonz

Handle 207 codes in move method properly

parent c909728d
......@@ -106,8 +106,15 @@ open class DavResource @JvmOverloads constructor(
}.use{ response ->
}.use { response ->
if (response.code() == 207)
/* Multiple resources were to be affected by the MOVE, but errors on some
of them prevented the operation from taking place.
[_] (RFC 4918 9.9.4. Status Codes for MOVE Method) */
throw HttpException(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