Skip to content

Response — Reference

Reference · Advanced · Server Connect

Send a specific HTTP response body and status.

Send a specific HTTP response body and status.

  • An open Server Connect action. Runtime differences below refer to the installed Node.js and PHP implementations.

Send a specific HTTP response body and status.

Setting Meaning
NameOptional identifier for the response step. The body is the configured data, not a new wrapper under this name.
StatusThe HTTP response status. Supply a numeric status such as 200 or 422; the runtime falls back to 200 when the status is absent or unsuitable.
Data TypeSelects the editor for Text or Object data. It is not a MIME-type selector and does not guarantee identical text output across server models.
Text DataThe value sent as the response body when using Text. Node.js defaults to JSON response handling, so a string can be JSON-encoded; PHP’s response handler writes a string as text.
Input DataThe name/value fields of an Object response. For example, an ok boolean and a message string produce a structured body.

Choose Object, set Status to 200, and add ok = true and message = Saved. Run the action and inspect both status and body. The body should contain those fields directly, not under the response step’s optional Name.

Put the response after the required work: further steps should not be used for processing after the response has been sent. Node.js supports a contentType runtime option, but this inspector rule only offers the body’s Data Type; verify headers when returning a non-JSON response.

Use the Server Connect guides when you need the surrounding project, data-loading or form procedure.

You can configure Response deliberately and verify the result and failure behavior described in this reference.