@salesforce/agents
    Preparing search index...

    Function getHttpStatusCode

    • Extract HTTP status code from API errors. Supports:

      • ERROR_HTTP_404 / ERROR_HTTP_500 style (name, errorCode, or data.errorCode)
      • Numeric statusCode on error, cause, or response

      Parameters

      • err: unknown

      Returns number | undefined