Environment configuration can define the global policy chain. You can provide custom chain or insert policies to the default one.
Echo policy accepts configuration option to terminate the request phase. See the example in configuration.lua
.
You can start it as:
ECHO_STATUS=202 bin/apicast --environment examples/policy_chain/configuration.lua