Spanish Total.js
English
Documentation For AI agents
Contents

Response

The settings of the Response component, which answers HTTP requests.

.md GitHub
On this page

Response answers the request that a Route received earlier in the same flow.

The Response settings

SettingWhat it does
TypeThe kind of answer: Auto, JSON, Success, Error, Empty response, Plain text, HTML, XML or Buffer.
Status codeThe HTTP status, for example 200 or 400. With Auto, the field is locked at 200.
Path for reading valueThe property of the data to send. Default response. Empty it to send the whole data.

The node header shows the status and the type, for example 200 auto or 400 json.

Examples

Data the node receivesPathAnswer
{ message: 'Hello, Jane!' }empty{"message":"Hello, Jane!"}
{ response: { success: true } }response{"success":true}

See Create a GET endpoint and Create a POST endpoint.

If your endpoint answers {}, the data has no property with the name in Path for reading value.

Made in Europe