 <p>Use the <code>xhr.status</code> property of the <a href="http://api.jquery.com/jQuery.ajax/#jqXHR" rel="nofollow">jqXHR</a>.</p> <pre><code>$('form').ajaxSubmit({ success: function(res, sta, xhr, $form) { $('#result-code').text(xhr.status); $('#result-content').html(res); }, error: function(xhr) { $('#result-code').text(xhr.status); } }); </code></pre>