title: jQuery.ajaxSetup: override error with statusCode
body: <p>I have the following code for default jQuery AJAX error handling:</p>
  
  <pre><code>$.ajaxSetup({
      error : function(jqXHR, textStatus, errorThrown) {
          alert("Error: " + textStatus + ": " + errorThrown);
      },
      statusCode : {
          404: function() {
              alert("Element not found.");
          }
      }
  });
  </code></pre>
  
  <p>However, when 404 happens, BOTH functions are upcalled: first <em>error</em>, then <em>statusCode</em>, so I see 2 consecutive alerts.</p>
  
  <p>How to prevent this behaviour and get <em>error</em> callback only if <em>statusCode</em> was not upcalled?</p>