Open the DevTools console and take a look at the log messages when clicking the buttons below. Try taking your browser offline and try again.

The service worker is able to send messages to the client page to distinguish between the image load failue due to an invalid URL and due to a network failure.