SERVER-10818 replace stub error codes with real status codes