helper function code to extract error from API response into a data.table

extract_error(responses, imagePaths)

Arguments

responses

an API response object

imagePaths

character, file paths, URLs or Cloud Storage URIs of the images, can be a combination of all three

Value

a data.table