set header before status