# GuardRails

For pipelines or security policies that need **specific rules** or **exit codes**, complex conditions can be set using **guardrail expressions**.

[Guardrails Gates](https://docs.xygeni.io/xygeni-scanner-cli/xygeni-cli-overview/guardrails) allows users to configure and define the behavior of a Xygeni command under specific conditions or criteria, enabling a customizable and adaptable approach to managing failure scenarios.

{% hint style="info" %}
See [GuardRails Specification](https://docs.xygeni.io/introduction-to-xygeni/guardrails) for further details.
{% endhint %}
