Pass the Execution Status Code through Binary Header Properties

In this pipeline, the pipeline execution status is routed to the error view, which is redirected to reflect on the browser using the Binary Header Properties of the JSON Formatter Snap. This allows us to view the status on the browser same as on the output view of the triggered pipeline.

Note: This workaround of using the Binary Header properties is mainly useful when the user wants to view the exact execution status of the triggered task which may or may not be consistent with the status code otherwise reflected on the browser.

Pipeline for status code pass-through using JSON Formatter Snap

.
  1. The JSON Formatter Snap passes the actual status code to the browser via the Binary Header Properties:

    JSON Formatter Snap Configuration

  2. The status code (405) as retrieved from the pipeline is mapped to the response:

    Status code mapped in pipeline

  3. The JSON Formatter Snap passes the actual status code to the browser via the Binary Header Properties:

    Status code passed to browser

  4. The status code (405) as reflected on the browser (Postman):

    Status code displayed in Postman

To reuse the pipeline:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.