coldbydefault-portfolio
    Preparing search index...

    Function toGitHubErrorCode

    • Maps a service failure to one of the bare error codes the UI translates.

      Parameters

      • error: unknown

      Returns "SERVICE_UNAVAILABLE" | "RATE_LIMIT_EXCEEDED"