2015-04-17 4:21 GMT+03:00 Oleg Stolyar <olegstolyar@gmail.com>:

resp = api:execute("curl", some_url)

where can I get the curl response code?


I use json

   local response = api:execute("curl", url .. " json timeout 2 get ")
   resp = json.decode(response)
  
   if  resp.status_code ~= 200 then
   ....