If an error occurs, all listener events contain up to three keys with the error information.
Key | Description |
---|---|
error | An string based error code. |
message | A human readable error message. |
status | The numerical status code returned from the network request. |
Note
The message and status keys can possibly be nil.
Example Listener
local function onResponse( evt ) if evt.error then print(evt.error, evt.message, evt.status) else --no errors end end