Need Help to add error handling in my Lambda python

Job ID: 33025997

Budget: ₹600 – ₹1,500 INR

I have a lambda function in python that is working fine and Api gateway was connected to it ,but for each and every error it's showing internal server. Now. I need help to add error messages for it.
Related categories: Python Aws Lambda