From 21f2424895e7189daa5fd8ff95cba9977c678dac Mon Sep 17 00:00:00 2001 From: csills01 Date: Thu, 14 Nov 2024 17:31:22 +0000 Subject: [PATCH] don`t retry on 409 status --- R/phs_GET.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/phs_GET.R b/R/phs_GET.R index 0af0702..2918784 100644 --- a/R/phs_GET.R +++ b/R/phs_GET.R @@ -11,6 +11,7 @@ phs_GET <- function(action, query, verbose = FALSE) { response <- httr::RETRY( verb = "GET", url = url, + terminate_on = c(409), user_agent = httr::user_agent( "https://github.com/Public-Health-Scotland/phsmethods" )