Removed occasionally defined error codes.

Since we don't have error codes for all possible errors, we shouldn't
use error codes for those few cases where we have defined them.