protected virtual void InitializeStatusCodes(HttpWebResponse response)
 {
     if (response == null)
     {
         this.StatusCode = HttpStatusCode.InternalServerError;
         this.NotificationStatus = NotificationStatus.NotApplicable;
         this.DeviceConnectionStatus = DeviceConnectionStatus.NotApplicable;
         this.ErrorDescription = null;
         this.DebugTrace = null;
         this.MessageId = null;
     }
     else
     {
         this.StatusCode = response.StatusCode;
         this.NotificationStatus = response.GetNotificationStatus();
         this.DeviceConnectionStatus = response.GetDeviceConnectionStatus();
         this.ErrorDescription = response.GetErrorDescription();
         this.DebugTrace = response.GetDebugTrace();
         this.MessageId = response.GetMessageID();
     }
 }