Bry
Bry2mo ago

Bry - Hi, in v1 there's a "Return" node where y...

Hi, in v1 there's a "Return" node where you can return http code to the caller. I used this to respond with http(403) when the caller is not authorized. In v2, the Return code is no longer available and replaced with an "Output" node. But how can you send http(403) response to the caller like with the Return node? I can't figure it out.... Thanks.
2 Replies
Gaurav Chadha
Gaurav Chadha2mo ago
@Bry Here's a loom explaining how to return different status codes using output node. https://www.loom.com/share/1fa0d55aeaed4a9c9fe576bf9b244672?sid=c6db2acf-07c9-4db7-836b-2fa669ef534e Let me know if it helps, we are working on docs and proper video for this. PS: the video ends at 2:28.
Loom
Understanding HTTP Status Codes in API Responses
In this video, I demonstrate how to manipulate HTTP status codes in API responses using the output node. I showcase returning different status codes like 200 and 403 based on conditions set in the custom node output. No specific action is requested from viewers, but the video serves as a practical guide on configuring status codes in API responses.
No description
Bry
BryOP2mo ago
Thanks Gaurav... it's working now...

Did you find this page helpful?