- Detect the type of error and trigger an action -- redirect to '/login' page
-- redirect to '/login' page