event add error codes