Skip to main content

Interface: ErrorMappingOptions

Defined in: src/error-mapping/types.ts:25

Properties​

defaultMap?​

optional defaultMap?: boolean

Defined in: src/error-mapping/types.ts:29

Apply the built-in HTTP status map. Default: true.


mapper?​

optional mapper?: ActivityErrorMapper

Defined in: src/error-mapping/types.ts:27

Runs after @NonRetryable() and before the default map.


nonRetryableStatuses?​

optional nonRetryableStatuses?: number[]

Defined in: src/error-mapping/types.ts:34

Statuses that make a thrown Nest HttpException non-retryable. Default: every 4xx except 408 (timeout) and 429 (rate limited), which are worth retrying.