have curl fail on 403, only overwrite the key if the exit code is 0