Generate errors page using a template and a .json file