convertStatusCodes function

Converts status indicators to a Standardized code