How to set result code in node js azure function (timer trigger) if any failure occurs ? Ex- If any error occur due to bad input, than I want to throw it as 400. Currently it's only logging with Exception and Stack. I want additional field status code (result code)
Thanks!!!