R/utils.r

Defines functions check_http_status

check_http_status <- function(x) {
    if (httr::status_code(x) != 200) {
        stop("Unable to access TOP data")
    }
}
ElianHugh/topapi documentation built on Dec. 17, 2021, 6:25 p.m.