Error returned:
{"RID":"api-059899a6-29b5-4e99-9009-2f3e4026ca28","level":"error","msg":"Cannot rename resource: [map[err:rename /home/clawiod/data/notmp/fileauth/demo/passwd /home/clawiod/data/notmp/fileauth/demo/passwd2: is a directory]]","time":"2015-09-13T14:35:18Z"}
Similar to #1 .
We have to catch the is a directory error and return 412 Precondition Failed.