Implemented a custom which updates the cluster leader when a redirect response is received.