bothy-sdk
    Preparing search index...

    Function errorClass

    • Returns the class for code when it belongs to status, else the class of the status family.

      Parameters

      • status: number

        The HTTP status.

      • code: string

        The problem code.

      Returns ProblemErrorClass

      The most specific class.