proxy : delete doHead and manage code status