If the indetify the error as having HTML (e.g. during development, a wrongly configured reverse proxy, etc.) render the HTML instead