When a client executes the "update" command on mongos, and mongos sends OP_UPDATE to a shard, and the shard's GLE responds with a duplicate key error, mongos must convert the error code to 11000. However, mongos allows the code 11001 through to the client.
Clients written to raise a specific exception class for duplicate key errors in response to write commands only anticipate code 11000.