Sync error codes with 1.0.1-stable.