Enhance HTML and manage HTTP errors 404 & 500