title: jQuery jqXHR - cancel chained calls, trigger error chain
body: <p>I am creating a ajax utility for interfacing with my server methods. I would like to leverage jQuery 1.5+ deferred methods from the object returned from the jQuery.ajax() call. The situation is following.</p>
  
  <ol>
  <li><p>The serverside method always returns a JSON object:</p>
  
  <p><code>{ success: true|false, data: ... }</code></p></li>
  <li><p>The client-side utility initiates the ajax call like this</p>
  
  <p><code>var jqxhr = $.ajax({ ... });</code></p></li>
  <li><p>And the problem area:   </p>
  
  <pre><code>jqxhr.success(function(data, textStatus, xhr) {
       if(!data || !data.success) { 
           ???? // abort processing, trigger error
       }
  });
  return jqxhr; // return to caller so he can attach his own handlers
  </code></pre></li>
  </ol>
  
  <p>So the question is how to cancel invocation of all the callers appended success callbacks an trigger his error handler in the place mentioned with <code>????</code> ? </p>
  
  <p>The documentation says the deferred function invocation lists are FIFO, so my success handler is definitely the first one.</p>