HTTP Response

network · N028 · starter-package 7.0.1

Return the only explicit response for the active inbound HTTP or webhook request.

Inputs

  • request — Inbound request; required text value from the trigger that started this run.
  • statusCode — Status code: number; optional; defaults to 200.
  • headers — Headers: record; optional.
  • body — Response body: any; optional.
  • bodyFormat — Body format: text; optional; defaults to json.

Outputs

  • responded — Responded: boolean; available after success.
  • statusCode — Status code: number; available after success.
  • response — Response: record; available after success.

Settings

IDSettingControlDefaultBounds/options
statusCodeStatus codenumber200100–599
bodyFormatBody formattogglejsonjson, text, base64

Behavior and error handling

Connect the Inbound Request text output from A010 HTTP / Webhook Trigger. Nodestly keeps the matching client request open and HTTP Response sends the configured status, headers, and body back to that caller.

One request can be answered only once. After a successful response, another block cannot reuse the same Inbound Request value. The encoded body is limited to 4 MiB. Response headers are lowercase, limited in size, and cannot set connection, transfer, cookie, or content-length fields.

Invalid input stops before any response is sent. If Inbound Request is missing, expired, or comes from another run, the message tells the user to reconnect A010's current output. A request that was already answered, an unavailable response service, an invalid body format, a body that is too large, and a disconnected caller each receive a separate clear message with a direct recovery step.

Recovering from errors

Connect A010's Inbound Request output from the HTTP / Webhook Trigger that started this workflow run. Do not save, copy, or reuse this value in a later run. Keep only one HTTP Response block on the executed path. For text or base64 format, connect a matching text value. If the caller disconnected, send a new request and keep it open until the workflow replies. If a correctly connected current request reports that the response service is unavailable, update Nodestly and both official add-ons, restart the app, and retry.

Example workflow

  1. Configure A010 HTTP / Webhook Trigger with the visible host, port, route, and method in its Filter input.
  2. Connect A010 Inbound Request directly to N028 Inbound request.
  3. Connect or configure the status, headers, body, and body format.
  4. Send a matching HTTP request. The caller receives N028's exact response before the workflow run ends.