code: public function addResponseInfo(Mage_Core_Controller_Response_Http $httpResponse)
      {
          $this->responseCode = $httpResponse->getHttpResponseCode();
  
          $this->responseHeaders = array();
          $headers = $httpResponse->getHeaders();
          foreach ($headers as $header) {
              $this->responseHeaders[$header['name']] = $header['value'];
          }
      }
docs: Initialize response properties
  
  @param Mage_Core_Controller_Response_Http $httpResponse