@suluk/core - v0.1.13
    Preparing search index...

    Function toProblemDetails

    • Pure constructor: a tag (+ optional detail/instance/errors/type) → the canonical Problem Details body. Fills status + title from the frozen tables and a stable legacy error code. No I/O, no throwing.

      Parameters

      • args: {
            tag: ErrorTag;
            detail?: string;
            instance?: string;
            errors?: Record<string, unknown>;
            type?: string;
        }

      Returns ProblemDetails