fixed docstring
add optional re-requesting on HTTP error