Our endpoints use basic try/catch blocks that return a generic 500 error for any database problem.
In production applications, you’d implement more granular error handling (specific errors for connection failures, invalid queries, etc.), but that’s beyond the scope of this lesson.