How verbose error messages leak more than stack traces
Unhandled exceptions that bubble up as raw JSON hand attackers your ORM, your database engine, your file paths, and sometimes the query itself. The fix is a generic client message, a logged error ID, and nothing else.