ModuleCode

@objc(MoEngageRecommendationsRequestFailureReasonModuleCode)
public enum ModuleCode : Int

Recommendations-specific failure codes.

Mirrors RecommendationsFailureReason in the shared mobile SDK contract so the values line up across platforms.

  • The request was rejected — a blank recommendationId, an id that is not a valid identifier, or HTTP 400 from the server.

    Declaration

    Swift

    case invalidRequest = 0
  • The request payload exceeded the server limit (HTTP 413).

    Declaration

    Swift

    case payloadTooLarge = 1
  • The account’s fair-usage limit was exceeded (HTTP 429).

    Declaration

    Swift

    case rateLimitExceeded = 2
  • The server failed to process the request (HTTP 500).

    Declaration

    Swift

    case internalServerError = 3
  • Any other unexpected failure.

    Declaration

    Swift

    case unknownError = 4