I have an angularjs app, that makes calls to asp.net web api.
I am new to both, but inherited the project from someone else
once logged into angular app, after some time, I get "502 Bad Gateway" error, when i try to refresh the page.
I'm guessing may be there is a session timeout duration set somewhere, where the sessions times out and I'm logged out and when I try to do something on the site, it gives me 502 Bad Gateway error.
I am trying to find out how can I catch this exception where possible so that I can let users know that they need to log back in or some useful warning.
the angularjs app had a backend web api service that it talks. where would this happen , in the api or in the anuglar front end code?