I am calling a PUT REST service and if there occurs a timeout of 60 seconds on the browser side and not on the server side, then I have to display a popover. How can I check for browser timeout in AngularJS? (REST service response is not an error, it is just timing out on the browser side.)
cancelData: function(cancelData2) { //code
return $http({ method: 'PUT',
data: cancelData2,
url: endpointURL,
headers: {'Content-Type': 'something',
'Accept' : 'something'},
timeout: 60000 });
}