class PagedList extends ArrayList<HttpResponse<T>> {

    public PagedList<T> ifFailure(Consumer<HttpResponse<T>> consumer) {
        stream().filter(r -> !r.isSuccess()).forEach(consumer);
        return this;
    }

}