---
title: "Class SitecoreLayoutResponse"
slug: "sitecore.layoutservice.client.response.sitecorelayoutresponse"
abstract: ""
---
# Class SitecoreLayoutResponse

Models a result from calling the Sitecore layout service.

## Inheritance

System.Object

SitecoreLayoutResponse

### **Namespace**: Sitecore.LayoutService.Client.Response

#### **Assembly**: Sitecore.LayoutService.Client.Abstractions.dll

##### Syntax

```csharp
public class SitecoreLayoutResponse : Object

```

### Constructors

#### SitecoreLayoutResponse(SitecoreLayoutRequest)

Initializes a new instance of the [SitecoreLayoutResponse](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.sitecorelayoutresponse.html) class.

##### Declaration

```csharp
public SitecoreLayoutResponse(SitecoreLayoutRequest request)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| SitecoreLayoutRequest | request | The [SitecoreLayoutRequest](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.request.sitecorelayoutrequest.html) object. |

#### SitecoreLayoutResponse(SitecoreLayoutRequest, List<SitecoreLayoutServiceClientException>)

Initializes a new instance of the [SitecoreLayoutResponse](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.sitecorelayoutresponse.html) class.

##### Declaration

```csharp
public SitecoreLayoutResponse(SitecoreLayoutRequest request, List<SitecoreLayoutServiceClientException> errors)

```

##### Parameters

| Type | Name | Description |
| --- | --- | --- |
| SitecoreLayoutRequest | request | The [SitecoreLayoutRequest](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.request.sitecorelayoutrequest.html) object. |
| System.Collections.Generic.List<br><br><<br><br>SitecoreLayoutServiceClientException<br><br>> | errors | The list of [SitecoreLayoutServiceClientException](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.exceptions.sitecorelayoutserviceclientexception.html) objects. |

### Properties

#### Content

Gets or sets the content of the response.

##### Declaration

```csharp
public SitecoreLayoutResponseContent Content { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| SitecoreLayoutResponseContent |  |

#### Errors

Gets the list of errors returned by the Sitecore layout service response.

##### Declaration

```csharp
public IReadOnlyCollection<SitecoreLayoutServiceClientException> Errors { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Collections.Generic.IReadOnlyCollection<br><br><<br><br>SitecoreLayoutServiceClientException<br><br>> |  |

#### HasErrors

Gets a value indicating whether the response has errors.

##### Declaration

```csharp
public bool HasErrors { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Boolean |  |

#### Metadata

Gets or sets the metadata of the response.

##### Declaration

```csharp
public ILookup<string, string> Metadata { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Linq.ILookup<br><br><<br><br>System.String<br><br>,<br><br>System.String<br><br>> |  |

#### Request

Gets the original request.

##### Declaration

```csharp
public SitecoreLayoutRequest Request { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| SitecoreLayoutRequest |  |
