added string converter for error codes