handled the errors from curl for rate limiting

imager rate limits were reached, handled them with a conditional.