Hi everyone!
In my team we are building a CRUD REST API and we hit, I guess, a quite basic issue which no one knows how to resolve. The issue is that we do not know how to property implement error handling in our app.
For simplicity, let's assume that we have 3 layers:
- API layer - those are our HTTP handlers that call one or more of our "services"
- Service layer - here resides the implementation logic.
- Storage layer - code for accessing postgres/redis/etc