You might consider using Resource Strings. TestStand UIs use them for localization (language). So you can create custom resource strings for your error codes and extract error messages using Engine.GetResourceString.
Michał Bieńkowski CLA, CTA Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future. Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.