After I am able to successfully execute a custom script, would it be a good practice to return the http code and content? Like say this is my script
result = platform.api.post( "cldbgps/_table/positions", position_data );
// Executed successfully and was able to post a record
event.response.status_code = 200;
event.response.content = {"success": "OK"};
return;
Will the ‘result’ variable hold a HTTP Status code after execution?
And also , is the “return;” at the end a good practice?
Thanks,
M.M