Error numbers in API calls

Please can API calls return an error number as an attribute in the XML - this will help with writing code so it doesn’t have to rely on string matching in error handling
(additionally publish a list of errors and associated error numbers)