Refactored FailureType out of Result and converted it from an enum to a class. Added metaDataFailureType for two new failure types.