print bson error codes