handles 401 with Unauthorized error