adds catching for bad status responses from server
adds support for iterating through paginated lists