Libraries
    Preparing search index...

    Function createProblemDetails

    • Create a ProblemDetails object for the given HTTP status code.

      Parameters

      • status: number

        HTTP status code (e.g. 400, 404, 500).

      • Optionaltitle: string

        Short, human-readable summary. Defaults to a standard phrase for common status codes.

      • Optionaldetail: string

        Longer explanation specific to this occurrence.

      • Optionalextensions: Record<string, unknown>

        Extra fields merged into the object (RFC 9457 §3.1).

      Returns ProblemDetails