Skip to main content

HTTP Response

This block sends the reply to an incoming HTTP request.

Configuration

  • Status Code: the HTTP status code to return, for example 200, 404 or 500. A variable can be used to return a different code depending on the request.
  • Response Data: the body returned to the client.

Usage

This block must be connected directly to an On HTTP Server Endpoint Called block, and to nothing else. The project will not validate otherwise.

Put the logic that handles the request between the two blocks, then feed the result into Response Data.

See also On HTTP Server Endpoint Called