title: Where magento check if product is disabled
body: <p>When I insert the url of a product that is disabled magento redirects to the 404 page. I need to override that controller or whatever redirects to that page.</p>
  
  <p>I have found this function in mage_catalog_model_product_status:</p>
  
  <pre><code>public function getProductStatus($productIds, $storeId = null)
  {
      return $this-&gt;getResource()-&gt;getProductStatus($productIds, $storeId);
  }
  </code></pre>
  
  <p>And if the product, which id is 9, is enabled returns {"9":"1"}, if disabled {"9":"2"}.
  I changed the function to: </p>
  
  <pre><code>public function getProductStatus($productIds, $storeId = null)
  {
      return array('9'=&gt;'1');
  }
  </code></pre>
  
  <p>but magento still redirects me to the 404 page.</p>
  
  <p>Does anybody know where this happen?
  Where magento check if a product is disabled?</p>