251
251
if resp.StatusCode == http.StatusNotFound {
252
252
return nil, dataURL, errors.NotFoundf("cannot find URL %q", dataURL)
255
return nil, dataURL, errors.Unauthorizedf("unauthorised access to URL %q", dataURL)
254
257
if resp.StatusCode != http.StatusOK {
255
258
return nil, dataURL, fmt.Errorf("cannot access URL %q, %q", dataURL, resp.Status)