The control flow policy is applied to control the conditional execution of policies. This makes use of choose, when, and otherwise statements as shown:
In our example, we mainly used the control flow policy to find out whether the backend service has returned status codes less than 400, and if so, to create a JSON response using the liquid template.