How do I capture the HTTP status code into the Response parameter?

Hi,
How do I capture the HTTP status code into the pipe call response parameter?
Eg, the pipe call might return a 201 or a 401 status code. I want to save that value as part of the pipe response.

Hi @philipteng , in this case you will need the code response from the request to be passed as parameter on the JSON or RAW response, there is no way to extract headers from the requests using pipes,

On the other hand you can use JQuery, and do a request from the JS, here you will have access to the headers, on the response

$.post( "https://webhook.site/tb-code-http", function( data, code, xhr ) {
  alert( "Data Loaded: " + xhr.status );
});

I see. So this will be essentially doing an API call directly from the frontend.

You can use Javascript Pipe to run TB API Calls