What's the logic when deployment fails?
I see it won't update the etag, I think it should, also the returned error would be a conflict, wouldn't we want a more specific error.