CreateErrorMenu(statusCode, error)

This menu will display error coming from the server

If you provide the statusCode parameter, like :

CreateErrorMenu(403)

It will try to find the appropriate error message from this table :

{
    [403] = {
       title = "Plan limit reached",
       description = "You cannot create any new emote."
    },
    [429] = {
       title = "Rate limiting reached",
       description = "You cannot do new request for the moment."
    }
}

If you provide an error parameter, like :

CreateErrorMenu(nil, { title = "Paywall limit", description = "Unsuficient funds" })

It will simply display your custom error :

Last updated