I want to make a call to a server that can return an authorization fail (401) with Angular2\'s HTTP class.
The flow of the request should look like that:
I guess retryWhen operator should help.
retryWhen