update error code for space