@metreeca/http - v0.4.1
    Preparing search index...

    Function isProblem

    • Checks if a value is a Problem.

      Every RFC 9457 member is optional, so a plain object qualifies as soon as it carries at least one of them with a well-formed value: an object carrying none of them describes no failure, and one carrying a member of an unexpected type doesn't describe it portably. Extension members are accepted as they come, whatever they carry.

      Parameters

      • value: unknown

        The value to check

      Returns value is Problem

      True if value is a plain object carrying at least one well-formed Problem member; false otherwise