Simulating 404 html elements in containers

I am trying to create an app that sends a request to get the html of a site and then displays specific element in a list view eg (h1, h2, ...), I have a big list of urls that 404 that I need to go through and find what element identifies the 404 on that site.

What is the best way to do this?

Hi @hugowaller

Thanks for reaching out!

Would something like this work? Instead of returning "err," you could return request.responseText. (i.e. change reject('error') to reject(request.responseText))