title: Window.open opens new window but server says "URL not found". Is there a way to capture that situation?
body: <p>I have app that uses Google Books API to grab some informations. Besides grabbing informations it also connects to WEB Page of chosen book. The problem is as follows: there are two subdomains with books. One has(I guess) really all books and the second only some (but the second shows more info!).</p>
  <pre><code>const showDetailedInfo = (item, redirect) =&gt; {
    const id = item[item.length - 1];
    console.log(item);
    if (id &amp;&amp; (typeof id === &quot;string&quot; || id instanceof String)) {
     
      const path = 'https://play.google.com/store/books/details?id=' +id;
         
      try{let newWindow = window.open(path, &quot;_blank&quot;);}
      catch(err){
        let result ={error: true, errorMessage:err.message}
        store.dispatch({ type: &quot;RECEIVE_BOOKS&quot;, payload: result });
        redirect.error();
  
      }
    }
  };
  </code></pre>
  <p>I would like as follows: if the book is not in second (with more info) subdomain, I will go to page with less info. The problem is that I can not catch that event.
  When the book is not in second I receive such the screen:
  <a href="https://play.google.com/store/books/details?id=aGcBwwEACAAJ" rel="nofollow noreferrer">https://play.google.com/store/books/details?id=aGcBwwEACAAJ</a>
  And valid variable newWindow (acc to MDN it should revert null onerror - but it is not error! The page has been opened).
  So, my question is whether it is possible to catch such the situation? I have read some on getting external page content and think it is not possible, but maybe there is another solution.</p>