Handle 401s on API requests