Circuit breaker work as backejection in place of redirection

Hi Team,

We were planning to use circuit breaker in our application, so that if some consecutive number of errors occur at xn +1 component then Istio should block the traffic of x component.

Our application is like that, from deployment 1, call goes to deployment 2 and so on till deployment n. We want if there is any failure in deployment n, then it should block the deployment 1 so that further request will not go in fallout.

Is it possible through istio? Or we just use circuit breaker in Istio during canary deployment so that if version 1 is not working properly then its request goes to version 2.