Return an error html result when the ejs render failed