{% if success is defined %}

Success

{{ success | raw }}
{% elseif error is defined %}

Error

{{ error | raw }}
{% endif %}