Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

My application is using spring boot & angular. I am handling session timeout in Angular Interceptor's "ResponseError" function. At server side , I added a HTTPSessionListener.

I tested this timeout like below: .

1). I set the server session timeout as 120 seconds,

2).logged in to the application ,

3).kept open Internet explorer developer console,

4).waited for 120 seconds to get over,

5).after that , clicked a link which triggers a request to server,

6)now debugging in Internet explorer developer console to see which interceptor function is called ,

Below is the result...

  • Angular Interceptor's Response Error Method is called
  • HTTP Status code is -1 ( YES minus 1, I am clueless)
  • HTTP status text is empty string.

7)now , again clicking an link, and getting the same result as above.

Now my question is , Why am getting HTTP response code -1 and what is the meaning of this?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.