Is there a scenario in which the success & error callback function could be called within an ajax request?
<p>In below pseudo-code the error a redirect is occurring even though the error callback is being invoked. The success callback should not be called if the error call back is called ?</p>

<pre><code>$.ajax({

success : {

redirectPage();
}

error : {

}
</code></pre>
