Handle 401 Unauthorized responses