Revert "Add http status code to error message"
This reverts commit 1f67e3194a1de7a4d099b5c0d874b1280cc800d7.
diff --git a/R/matomoquery.R b/R/matomoquery.R
index 8d2ec02..e530d4b 100644
--- a/R/matomoquery.R
+++ b/R/matomoquery.R
@@ -67,7 +67,7 @@
) -> res
if (status_code(res) != 200) {
- stop(paste("API call failed with status", status_code(res), ":", httr::content(res, "text", encoding = "UTF-8")), call. = FALSE)
+ stop(paste("API call failed:", httr::content(res, "text", encoding = "UTF-8")), call. = FALSE)
}
if (!http_type(res) %in% c("application/json", "application/ld+json")) {