Error - NickIsADev/erlua GitHub Wiki

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.