The Lua runtime can inspect values you pass to the error
function and determine if it can extract a message and response code. You can do this:
local message = "my error message"
local code = 13
error({message, code})
Where the code must be a GRPC response code numeric value from this list and will be mapped to a HTTP response code if necessary using this translation.