Return error code of elevator init function