Error handling in browser-request.lua
Reducing required Lua API