Skip to content
From 0.5.0 the packages continue as @cqrs-ddd, documented at aristoteliss.github.io/ddd-cqrs; NestJS applications add @cqrs-ddd/nestjs. This site documents the 0.4.x line.

DomainErrorHttpStatus

Defined in: packages/ddd-core/http/domain-error-http-status.ts:9

HTTP answer for a DomainException, as plain values.

readonly error: string

Defined in: packages/ddd-core/http/domain-error-http-status.ts:13

Reason phrase of statusCode, such as 'Conflict'.


readonly message: string

Defined in: packages/ddd-core/http/domain-error-http-status.ts:18

Message safe to return to the caller: the exception’s own message, or a generic one when the exception message is meant for developers.


readonly statusCode: number

Defined in: packages/ddd-core/http/domain-error-http-status.ts:11

HTTP status code.