how to abort an ajax request once the browser receive 200ok

how to abort an ajax request once the browser receive 200ok

i have an ajax request that looks like

  1.     // ---------------------------------------- start(clicked_button, app_path)
  2.     var start = function(clicked_button, app_path) {
  3.         
  4.         $.ajax({
  5.             type: 'POST',
  6.             data: { 'app_path': app_path },
  7.             url: '/app/start',
  8.             context: clicked_button,

  9.             success: function(msg) {console.log('ok go to sleep ..'); }
  10.         })

  11.         .done(function(data) {
  12.             console.log(data);
  13.             $(this).removeClass('btn-success');
  14.             $(this).addClass('btn-danger');
  15.             $(this).text('stop');
  16.         })

  17.         .fail(function(data) {
  18.             console.log('failed to start the app: ' + data);
  19.         })
  20.     };

the request is completed successfuly, and the operation is done i expect it to be, the browser receive a 200 ok from the server, but .done() is not triggered, i have no idea way?

all i want is just abort the request once the browser receive a 200 ok, so how can i do that?