Diagram
  • Introduction
  • Get Started
    • Hello World
    • Connecting to a DB
    • From a template
  • Concepts
    • Endpoints
    • Algorithm
  • Nodes
    • Bcrypt
    • Code
    • Constant
    • Database
    • EasyDB
    • Firestore
    • If / Then
    • Request
    • Response
    • JWT
    • Mapper
    • MongoDB
    • Stripe
    • Webhook
  • Templates
    • Login
    • Register
    • Get User
  • Resources
    • Dashboard
    • Contact
    • FAQs
Powered by GitBook
On this page
  • General
  • Input
  • Output
  • Use Cases

Was this helpful?

  1. Nodes

Response

PreviousRequestNextJWT

Last updated 3 years ago

Was this helpful?

General

The Response node is used to return an HTTP response with an optional response body and status code. A static response can be set from the node settings or a dynamic one that is passed as a parameter.

There can be multiple Response nodes in one endpoint to handle multiple return cases.

Input

  • Source: Receives an Object, String, Number or Boolean with the HTTP response data. Learn more on .

Output

  • The Response node has no output.

Use Cases

Call an external API parse and process the response.

  • Request (Get) ➡ Webhook ➡ Script ➡ Response (200)

Receive data from a request and save the to the database.

  • Request (Post) ➡ Database ➡ Response (200)

res.send