DhavalKapil / elasticsearch-lua

Lua client for Elasticsearch
http://elasticsearch-lua.readthedocs.io/
MIT License
150 stars 38 forks source link

Returning the response code alongwith data/error #10

Closed DhavalKapil closed 8 years ago

DhavalKapil commented 8 years ago

In case of a successful request, return parameters should be:

data, status_code

In case of an error, return parameters should be:

nil, message, status_code