insert error code