I do http.get from angular js
$http.get('/api/users?id='+userID)
Further if unauthorized I do redirect with status from express js
res.status(401).location('/login').end();
Вut a response from the server 200 with login page in a response data
Why return status is 200 and not 401 how to fix it?
and my another question