title: What happens when an AJAX request gets a "302 Moved" response?
body: <p>I'm trying to AJAXify an old website form without modifying the back end.  Originally, the backend would response with a "302 Moved" redirect to a "thank you" page after receiving the form.</p>
  
  <p>Now, when I try to submit the form using a jQuery $.ajax call, the form data gets submitted successfully, but the "302 Moved" redirect seems to get cancelled by the browser and jQuery doesn't know what's going on.</p>
  
  <p>My problem is that no matter what happens, the $.ajax call returns with an error and status = 0, so I have no way to distinguish between a successful submit and an error.</p>
  
  <p>Is there a way to prevent the browser from trying to follow the redirect, or at least getting back the proper response codes?  (I'm using Chrome.)</p>