Add XID, status and reason to error HTML