static Status valueOf(int errCode) { return Status.values.firstWhere( (status) => status.code == errCode, orElse: () => Status.UNKNOWN, ); }