Use this tag to set a custom HTTP response code.
{% set_response_code status_code ["status_message"] %}
Status_code must be an integer between 100 and 599 in order to be valid. You may include variables filters, etc.. in the status message if desired.
Set response code to 418 "I'm a teapot"
Copy