---
title: "Class ResponseMessage"
slug: "js-sdk--responsemessage"
abstract: ""
---
# Class ResponseMessage

A response message that will be returned by IInternalClient instances.

## Constructors

### ResponseMessage()

#### Declaration

```csharp
new ResponseMessage()
```

### Members

### isSuccessStatusCode

Indicates if the response is successful.

#### Declaration

```csharp
isSuccessStatusCode
```

### Functions

### build(statusCode, responseHeaders, optional)

Build a response message.

#### Declaration

```csharp
function build(statusCode, responseHeaders, optional)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
|  | *statusCode* | HTTP status code |
|  | *responseHeaders* | Headers containing additional information sent by the server |
|  | *optional* | Object with more response properties (statusText, content, ...) |
