Refine http output