Display error if the page fails to load instead of generic 404