setError(value: ErrorCode) {
    this._data['error'] = value;
  }
great big union used as type annotation will be flowed into itself.
List.mem check avoids pathology, as long as singletons aren't converted.
This is a band-aid, though: see second case.
@flow