abstract force code from http code