Raise errors appropriately for paginated_api failures