title: How to check in JavaScript if resource exists without having console errors?
body: <p>I would like to check if a resource exists without having console errors. </p>
  
  <p>I tried:</p>
  
  <pre><code>jQuery.ajax({
      type : 'HEAD',
      url : myUrl,
      success : function(){},
      error : function(jqXHR, textStatus, errorThrown) {
          // business logic
      }
  }).complete(function() {
      // business logic
  });
  </code></pre>
  
  <p>It perfectly works but errors are tracked in console. </p>