Response Headers & Status Codes

How can I access response headers and status codes from Connectors, APIs and REST Helper

You can access response headers from any Connector and the REST Helper by simply using Jinja filter function http_header:

{{ zendesk | http_header('status-code') }}

To access the status code, you can either access it from the headers (as shown above) or, for example, if the API does not return the status code in the headers, access it with the Jinja filter function http_status_code:

{{ zendesk | http_status_code }}

Last updated