pass status code along with gzip html error