Documentation for Simbo's Packages
    Preparing search index...
    • Checks whether an error is an HTTP error with the given status, such as a RequestError that Octokit throws for a failed request.

      Parameters

      • error: unknown

        The error to check.

      • status: number

        The expected HTTP status.

      Returns error is { status: number }

      true if the error has a status property with the given value.