Imagine an API result leads to an error like a 404. How would we check for that and output some alternative content when that occurs? Unless I’m missing something this isn’t possible at the moment.
To give an example, I’m grabbing random images from an API and some of those images may lead to a 404. The API result is technically not empty since the image URL is returned, it’s just that it leads to a 404 when the image no longer exists. How can we account for situations like this?