Differentiating Mongoose Timeout vs. User Cancellation Errors
Query Error Ambiguity Mongoose reports a generic MongoServerError code 54 for both server-side timeouts and user‑initiated cancellations. Design Uncertainty Does a first‑class cancellation API need to explicitly differentiate error types? How should error handling be structured to avoid ambiguity between timeout and abort?