update space error code