Amend the custom error template