Skip to content
Troptop edited this page Jul 20, 2024 · 1 revision

Error

Property Type
code number
message string

An Error is returned on a request when it fails. An example of an Error is below:

{
    code = 2001,
    message = "Invalid Server-Key"
}

Most of ERLua's HTTP functions will return an Error object if an error occurs, but some return nil, and print the custom error message.

Clone this wiki locally