i don’t think that the command should return an error ,
your goal is to have the retention policy you specify ,
and the result is what you wanted even if the RP already existed.
On the other hand , an error is returned if you create a retention policy that already exists with a different duration .
Indeed you want to be consistent in the way you report errors or successes.
I am not to sure about these retention policies, but if an existing one can have different data than a newly created. Than you have to report the error it was not created, because it was not.