Is there a block in case of loading error in Webview?

Here is exact what i want but they did share the extension,

but i founded one from this