structure(list(method = "POST", url = "/data-objects", status_code = 200L, headers = structure(list(Server = "irods_http_api/0.2.0 (8da6c5794f04edab1290e429a0d1676e4452dd5c)", `Content-Type` = "application/json", `Content-Length` = "58", Date = ""), class = "httr2_headers"), body = charToRaw("{\"irods_response\":{\"failed_operation\":{},\"status_code\":0}}"), request = structure(list(url = "http://localhost:9001/irods-http-api/0.2.0/data-objects", method = "POST", headers = structure(list(Authorization = ""), redact = "Authorization"), body = list(data = list(op = structure("modify_metadata", class = "AsIs"), lpath = structure("%2FtempZone%2Fhome%2Frods%2Ftestthat%2Fdfr.csv", class = "AsIs"), operations = structure("%5B%7B%22operation%22%3A%22add%22%2C%22attribute%22%3A%22foo%22%2C%22value%22%3A%22bar%22%2C%22units%22%3A%22baz%22%7D%2C%7B%22operation%22%3A%22add%22%2C%22attribute%22%3A%22foo2%22%2C%22value%22%3A%22bar2%22%2C%22units%22%3A%22baz2%22%7D%5D", class = "AsIs"), admin = structure("0", class = "AsIs")), type = "form", content_type = "application/x-www-form-urlencoded", params = list()), fields = list(), options = list(), policies = list(retry_max_tries = 3, retry_is_transient = structure(function (..., .x = ..1, .y = ..2, . = ..1) httr2::resp_status(.x) %in% c(429, 503), class = c("rlang_lambda_function", "function")), error_body = function (resp) { if (httr2::resp_status(resp) >= 500 && httr2::resp_status(resp) < 600) { irods_message <- try(httr2::resp_body_json(resp, check_type = TRUE)$error_message, silent = TRUE) paste0(ifelse(inherits(irods_message, "try-error"), "", irods_message), "The iRODS server might be malconfigured.") } else if (length(resp$body) != 0) { resp <- unlist(httr2::resp_body_json(resp, check_type = FALSE)) paste(names(resp), vapply(resp, as.character, character(1)), sep = ": ") } else { "This is likely a malformed HTTP request." } })), class = "httr2_request"), cache = new.env(parent = emptyenv())), class = "httr2_response")