I gotta say it's pretty frustrating to write error handling code and logging around the Barracuda API's responses when the fault string comes back in at least 3 different ways (that I've run across so far). faultCode seems to be consistent but why in the world is the fault string reported back in different ways? I'm baffled why you would do this, especially in a format (XML) that is case sensitive.
Has anyone else run into this writing your scripts? How did you handle it?
I suppose I can convert to a string and do a case-insensitive search for "faultstr" then parse the result but that kinda defeats the purpose of having all this stuff in XML in the first place.