code: def _set_amz_headers(self):
          
          if self._response.headers:
              # keeping x-amz-id-2 as part of amz_host_id.
              if 'x-amz-id-2' in self._response.headers:
                  self.host_id = self._response.headers['x-amz-id-2']
              if 'x-amz-request-id' in self._response.headers:
                  self.request_id = self._response.headers['x-amz-request-id']
              # This is a new undocumented field, set only if available.
              if 'x-amz-bucket-region' in self._response.headers:
                  self.region = self._response.headers['x-amz-bucket-region']
docs: Sets x-amz-* error response fields from response headers.