Add helper API converts error code to string