Skip to content

API Reference


API Reference / DhanApiErrorBody

Interface: DhanApiErrorBody

Defined in: src/errors/ApiResponseError.ts:4

Shape of the JSON body DhanHQ returns alongside a non-2xx REST response.

Properties

errorType?

optional errorType?: string

Defined in: src/errors/ApiResponseError.ts:6

Broker-assigned category, e.g. "Order_Error".


errorCode?

optional errorCode?: string

Defined in: src/errors/ApiResponseError.ts:8

The DH-9xx code from TradingErrorCode in ../constants.


errorMessage?

optional errorMessage?: string

Defined in: src/errors/ApiResponseError.ts:10

Human-readable description, when Dhan provided one.

Community project — not affiliated with Dhan. MIT License.