I have a login service which uses api express to connect with my backend rest service. My question is, it always generate a success even when the http response is 401. see image from console:
I imagined that a 401 response would cause the error javascript to fire not the success one.
Can you explain this?
If this is correct, can I force an error condition or do i need to write some javascript to test the response body and call the relevant navigation from there?