NODE-5987Backlog

MongoServerError enumerable keys are duplicated by errorResponse

As a Node driver engineer, I want to store error information in exactly one place, So that we don't need to be responsible for maintaining the server information in two places. The server's actual error is stored both as the {{errorResponse}} field on the MongoServerError and has every property copied onto the server error (see https://github.com/mongodb/node-mongodb-native/blob/8ab5d19bee52bf1f0bc24a76586375a4825190f9/src/error.ts#L226). h3. Why this needs a major Typed error responses are b

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
Error
Labels
Tags and classification
node-internal