Add reusable API error handler (#5790)
authored by yoginth.com and committed by GitHub 9 months ago aeb51ab3 5424b9d1