title: Is $.ajax's error option the same as .fail()?
body: <p>Can anyone tell me if there is any difference between these two jquery calls?</p>
  
  <pre><code>$.get("/foo", function (data, textStatus, jqXHR) {
      doThingA()
  }).fail(function () {
      doThingB()
  });
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>$.ajax({
      url: "/foo",
      success: function (data, textStatus, jqXHR) {
          doThingA()
      },
      error: function () {
          doThingB()
      }
  });
  </code></pre>
  
  <p>I'm refactoring some code and just wondering if these two are exactly the same.  I think if there is a difference it's most likely to be between <code>fail()</code> and the <code>error</code> option.  Grateful for any advice, thanks.</p>