public static async Task<string> LogMessage(HttpResponseMessage message, ILogger logger)
 {
     string formattedMsg = await message.FormatErrorMessage();
     logger.LogError(formattedMsg);
     return formattedMsg;
 }