I have a stored procedure which takes 10 sec to execute and returns 10,000 records of data. But every time I call the API, the call results in a connection timeout. If I am able to increase the timeout of the REST request then it would be working fine.
My main question is: If a timeout occurs, how do I get the timeout error in the AJAX request, so that I show the user that timeout occurred? Every time the AJAX call fails and I do not receive an error indicating a timeout happened or that the data was not found.