Handle AWS lambda error with API gateway using TypeScript in a clean way | Dark Hacker News