---
title: HttpError
slug: data-platform/connect-platform/node-sdk-api-reference-zaiusapiv3-classes-httperror
docTags: 
createdAt: 2026-08-05T20:06:38.318Z
---

[ODP Node SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / [Zaius](docId\:Ymt8R5EsKRYBHwqG3pJkL) / [ApiV3](docId\:OZpxteyA2CB_Lzk9EZ-Jn) / HttpError

# HttpError

## Hierarchy

- `Error`.**HttpError**

## Index

### Constructors

- [constructor](<./#function Object() \{ \[native code] }>)

### Properties

- [code](docId\:kJVh4unow0AlnsLM0c91Q)
- [message](docId\:kJVh4unow0AlnsLM0c91Q)
- [name](docId\:kJVh4unow0AlnsLM0c91Q)
- [response](docId\:lyzLLL70oyAs8-ZPA4tGm)
- [stack](docId\:kJVh4unow0AlnsLM0c91Q)
- [prepareStackTrace](docId\:kJVh4unow0AlnsLM0c91Q)
- [stackTraceLimit](docId\:kJVh4unow0AlnsLM0c91Q)

### Methods

- [captureStackTrace](docId\:kJVh4unow0AlnsLM0c91Q)

## Constructors

## constructor()

### Signature

```typescript
new HttpError(message: string, code?: string, response?: HttpResponse<V3ErrorResponse>): HttpError;
```

### Parameters

| Name        | Type                                                                                                           |
| ----------- | -------------------------------------------------------------------------------------------------------------- |
| `message`   | `string`                                                                                                       |
| `code?`     | `string`                                                                                                       |
| `response?` | [`` `HttpResponse` ``](docId\:kJVh4unow0AlnsLM0c91Q)\<[`` `V3ErrorResponse` ``](docId\:g-NQhc3o8f1tF5kkMPpr9)> |

### Returns

[`` `HttpError` ``](docId\:kJVh4unow0AlnsLM0c91Q)

Overrides: Error.constructor

Defined in: [src/Api/lib/ApiV3.ts:95](https://github.com/ZaiusInc/node-sdk/blob/46602d2/src/Api/lib/ApiV3.ts#L95)

## Properties

### code?

:::BlockQuote
`string`
:::

Defined in: [src/Api/lib/ApiV3.ts:95](https://github.com/ZaiusInc/node-sdk/blob/46602d2/src/Api/lib/ApiV3.ts#L95)

### message

:::BlockQuote
`string`
:::

Inherited from: Error.message

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1041

### name

:::BlockQuote
`string`
:::

Inherited from: Error.name

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1040

### response?

:::hint{type="info"}
[`` `HttpResponse` ``](docId\:kJVh4unow0AlnsLM0c91Q)\<[`` `V3ErrorResponse` ``](docId\:g-NQhc3o8f1tF5kkMPpr9)>
:::

Defined in: [src/Api/lib/ApiV3.ts:95](https://github.com/ZaiusInc/node-sdk/blob/46602d2/src/Api/lib/ApiV3.ts#L95)

### stack?

:::BlockQuote
`string`
:::

Inherited from: Error.stack

Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1042

### prepareStackTrace?

:::BlockQuote
`Function`
:::

### Type declaration

Optional override for formatting stack traces

### See

[https://v8.dev/docs/stack-trace-api#customizing-stack-traces](https://v8.dev/docs/stack-trace-api#customizing-stack-traces)

### Signature

```typescript
(err: Error, stackTraces: CallSite[]): any;
```

### Parameters

| Name          | Type          |
| ------------- | ------------- |
| `err`         | `Error`       |
| `stackTraces` | `CallSite`\[] |

### Returns

`any`

Inherited from: Error.prepareStackTrace

Defined in: node\_modules/@types/node/globals.d.ts:11

### stackTraceLimit

:::BlockQuote
`Static` `number`
:::

Inherited from: Error.stackTraceLimit

Defined in: node\_modules/@types/node/globals.d.ts:13

## Methods

### captureStackTrace()

Create .stack property on a target object

### Signature

```typescript
Static captureStackTrace(targetObject: object, constructorOpt?: Function): void;
```

### Parameters

| Name              | Type       |
| ----------------- | ---------- |
| `targetObject`    | `object`   |
| `constructorOpt?` | `Function` |

### Returns

`void`

Inherited from: Error.captureStackTrace

Defined in: node\_modules/@types/node/globals.d.ts:4
