i.e. enum with code as value, and a reason attribute I'd like to be able to compare close reason without resorting to string comparison