Domain Context

Classes

Classes

DomainContextError

Base error class for domain context validation errors. Provides structured error responses with HTTP status codes.

Constructor

constructor(message: string, code: string, httpStatus?: number)

Parameters:

ParameterTypeRequiredDescription
messagestringYes
codestringYes
httpStatusnumberNo

Methods

toJSON

toJSON(): { error: string; message: string; status: number; }

Returns:

{ error: string; message: string; status: number; } -

MissingDomainIdError

Thrown when domainId is missing or has a placeholder value. domainId is REQUIRED - it's extracted from JWT by Kong gateway.

Constructor

constructor()
Previous
API Reference