get if image fails to load code example
Example 1: bootstrap show alternative image if not exist
<img id="currentPhoto" src="https://www.ccrharrow.org/Images/content/953/741209.pg" onerror="this.src='https://www.unesale.com/ProductImages/Large/notfound.png'" alt="">
Example 2: js detect all images errors
window.addEventListener("error", e => {
/* query selector images */
// image element on error => replace source
})