fix status definition when errorCode set to OK or not.