> For the complete documentation index, see [llms.txt](https://docs.justaname.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.justaname.id/sdk-reference/justaname-core-sdk/interfaces/baseresponse.md).

# BaseResponse

[**@justaname.id/sdk**](/sdk-reference/justaname-core-sdk.md) • **Docs**

***

[@justaname.id/sdk](/sdk-reference/justaname-core-sdk/globals.md) / BaseResponse

## Interface: BaseResponse\<T>

Represents the Base Response type of JustaName API.

### Typeparam

T - The type of the data to be returned.

### Type Parameters

• **T**

### Properties

#### result

> **result**: `object`

**data**

> **data**: `T` *extends* `null` ? `null` : `T`

**error**

> **error**: `ErrorType`<`T`>

**Defined in**

[packages/@justaname.id/sdk/src/lib/types/base-response/index.ts:14](https://github.com/JustaName-id/JustaName-sdk/blob/dc845c10af242e3ca87d95ef392516ac0bfa8b95/packages/@justaname.id/sdk/src/lib/types/base-response/index.ts#L14)

***

#### statusCode

> **statusCode**: `number`

**Defined in**

[packages/@justaname.id/sdk/src/lib/types/base-response/index.ts:13](https://github.com/JustaName-id/JustaName-sdk/blob/dc845c10af242e3ca87d95ef392516ac0bfa8b95/packages/@justaname.id/sdk/src/lib/types/base-response/index.ts#L13)
