format response headers