Skip to main content

NormalizedError

API Docs


Type Alias: NormalizedError

NormalizedError = object

Defined in: src/utilities/errors/errorTransformer.ts:13

Normalized error structure used internally by the error handling system.

This type represents the standardized format that all errors are transformed into before being sent as responses.

Properties​

code​

code: ErrorCode

Defined in: src/utilities/errors/errorTransformer.ts:15

Standardized error code


details?​

optional details: unknown

Defined in: src/utilities/errors/errorTransformer.ts:21

Optional additional error context


message​

message: string

Defined in: src/utilities/errors/errorTransformer.ts:17

Human-readable error message


statusCode​

statusCode: number

Defined in: src/utilities/errors/errorTransformer.ts:19

HTTP status code