---
title: Response
project: LessCode
version: 1.0
section: reference
language: en
license: MIT
url: https://totaljs.es/docs/lesscode/1-0/reference/response/
updated: 2026-11-19T04:41:17.281Z
---

# Response

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

**Response** answers the request that a [Route](../route/) received earlier in the same flow.

![The Response settings](/files/Jap1b23AO61f.webp)

| Setting | What it does |
|---|---|
| **Type** | The kind of answer: **Auto**, **JSON**, **Success**, **Error**, **Empty response**, **Plain text**, **HTML**, **XML** or **Buffer**. |
| **Status code** | The HTTP status, for example `200` or `400`. With **Auto**, the field is locked at `200`. |
| **Path for reading value** | The 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 receives | Path | Answer |
|---|---|---|
| `{ message: 'Hello, Jane!' }` | empty | `{"message":"Hello, Jane!"}` |
| `{ response: { success: true } }` | `response` | `{"success":true}` |

See [Create a GET endpoint](../../recipes/get-endpoint/) and [Create a POST endpoint](../../recipes/post-endpoint/).

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