Skip to content

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.