add hascode and fix get statustype