Use ERR_TYPE_* constants