I've just started using Lambda and Go thus sorry for newbie questions.
So the question:
I have a lambda that may return errors with different status codes: 400, 404, 500.
On top of it I have an API Gateway that right now always returns me 502 when lambda returns any error.
I've failed to map it through response templates.
Could someone please give me a hand with this? What is a proper way to manage errors handling?