---
url: /nestjs-odata/api/generated/interfaces/ODataErrorDetail.md
---
# Interface: ODataErrorDetail

Defined in: [response/odata-error.ts:7](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-error.ts#L7)

One entry of an OData error's `details` array (OData v4 JSON format §21).

## Properties

### code

> `readonly` **code**: `string`

Defined in: [response/odata-error.ts:8](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-error.ts#L8)

***

### message

> `readonly` **message**: `string`

Defined in: [response/odata-error.ts:9](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-error.ts#L9)

***

### target?

> `readonly` `optional` **target?**: `string` | `null`

Defined in: [response/odata-error.ts:10](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-error.ts#L10)
