code: def get_status_from_async(self, response):
          
          self._raise_if_bad_http_status_and_method(response)
          if self._is_empty(response):
              raise BadResponse('The response from long running operation '
                                'does not contain a body.')
  
          self.status = self._get_async_status(response)
          if not self.status:
              raise BadResponse("No status found in body")
  
          # Status can contains information, see ARM spec:
          # https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#operation-resource-format
          # "properties": {
          # /\* The resource provider can choose the values here, but it should only be
          #   returned on a successful operation (status being "Succeeded"). \*/
          #},
          # So try to parse it
          try:
              self.resource = self._deserialize(response)
          except Exception:
              self.resource = None
docs: Process the latest status update retrieved from a
          'azure-asyncoperation' header.
  
          :param requests.Response response: latest REST call response.
          :raises: BadResponse if response has no body, or body does not
           contain status.