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?
optionalerrorType?:string
Defined in: src/errors/ApiResponseError.ts:6
Broker-assigned category, e.g. "Order_Error".
errorCode?
optionalerrorCode?:string
Defined in: src/errors/ApiResponseError.ts:8
The DH-9xx code from TradingErrorCode in ../constants.
errorMessage?
optionalerrorMessage?:string
Defined in: src/errors/ApiResponseError.ts:10
Human-readable description, when Dhan provided one.