I am making a single page application using angular, at times the backend services do not response or are down and browser takes very long time to timeout request.
How can I forcefully timeout an http request from frontend in lesser time, this will help me show message to user that backend is not responding.