# HTTP Response

## Overview

![The HTTP Response Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-45cb985afaaca9e3c85e193258b66e4e132999a3%2Fhttpresponseupdatedimage.png?alt=media)

The **HTTP Response Node** allows the user to define a response to be sent after a request is received and processed.

[**Scope**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2023.1/toolbox/communication/overview.md#scopes): **Project**, **Scene**.

## Attributes

![The HTTP Response Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-b2943464ebb4ed16e05120a49f56e4ce862271fa%2Fhttpresponseattributes.png?alt=media)

| Attribute                | Type             | Description                                                                                                                                                                                    |
| ------------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Configuration`          | **Drop-down**    | The desired *HTTP(S)* server, which refers back to the selections made under *HTTP* in the [**Project Settings**](https://docs.incari.com/incari-studio/2023.1/modules/project-settings/http). |
| `Header`                 | **Add elements** | Here a status code is entered and *HTTP* headers, in the form of key/value pairs, are added.                                                                                                   |
| `Is Request Body Binary` | **Bool**         | The user chooses true or false depending on whether they wish for the `Request Body` to remain a **String** or be converted into *binary*. Currently, the **Node** only supports **Strings**.  |
| `Default Body`           | **User Input**   | The body of the response, usually including *HTML* text.                                                                                                                                       |

## Inputs

| Input             | Type           | Description                                                                                                                                                                                                                                                             |
| ----------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**      | A standard **Input Pulse**, to trigger the execution of the **Node**.                                                                                                                                                                                                   |
| `Request ID`      | **CustomID**   | The unique ID of the request, which is required so that the **Node** knows which client to send the response to. This ID can be obtained from the [**On HTTP Route Node**](https://docs.incari.com/incari-studio/2023.1/toolbox/communication/http/events/onhttproute). |
| `StatusCode`      | **Int**        | A standard status code within the *HTTP* protocol. For example, 404 is when a page is not found.                                                                                                                                                                        |
| `Headers`         | **Dictionary** | *HTTP* headers in the form of key/value pairs.                                                                                                                                                                                                                          |
| `Body`            | **String**     | The body of the response, usually including *HTML* text.                                                                                                                                                                                                                |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |

## External Links

* [*HTTP Responses*](https://www.toolsqa.com/client-server/http-response/)
