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

# Response

> Le impostazioni del componente Response, che risponde alle richieste HTTP.

**Response** risponde alla richiesta che una [Route](../route/) ha ricevuto prima nello stesso flusso.

![Le impostazioni di Response](/files/Jap1b23AO61f.webp)

| Impostazione | Cosa fa |
|---|---|
| **Type** | Il tipo di risposta: **Auto**, **JSON**, **Success**, **Error**, **Empty response**, **Plain text**, **HTML**, **XML** o **Buffer**. |
| **Status code** | Lo stato HTTP, per esempio `200` o `400`. Con **Auto**, il campo è bloccato su `200`. |
| **Path for reading value** | La proprietà dei dati da inviare. Predefinita: `response`. Svuotalo per inviare tutti i dati. |

L'intestazione del nodo mostra lo stato e il tipo, per esempio `200 auto` o `400 json`.

## Esempi

| Dati che il nodo riceve | Percorso | Risposta |
|---|---|---|
| `{ message: 'Hello, Jane!' }` | vuoto | `{"message":"Hello, Jane!"}` |
| `{ response: { success: true } }` | `response` | `{"success":true}` |

Leggi [Creare un endpoint GET](../../recipes/get-endpoint/) e [Creare un endpoint POST](../../recipes/post-endpoint/).

Se il tuo endpoint risponde `{}`, i dati non hanno nessuna proprietà con il nome indicato in **Path for reading value**.
