Replace the way Server send HTTP code