public MeisterStatus(IRestResponse response, string endpoint)
 {
     if (response != null && response.ResponseUri != null)
     {
         StatusCode            = response.StatusCode;
         StatusCodeDescription = response.StatusDescription;
         LogEntry     = response.Content;
         OriginalUrl  = response.ResponseUri.AbsoluteUri;
         FromEndpoint = endpoint;
         if (LogEntry.Contains("<?xml"))
         {
             XmlDocument doc = new XmlDocument();
             doc.LoadXml(LogEntry);
             LogEntry = JsonConvert.SerializeXmlNode(doc);
         }
     }
     else if (response != null)
     {
         StatusCode            = HttpStatusCode.ServiceUnavailable;
         StatusCodeDescription = HttpStatusCode.GetName(typeof(HttpStatusCode), StatusCode);
         FromEndpoint          = endpoint;
         OriginalUrl           = response.Request.Resource;
     }
 }