remove transfer-encoding within set_error_resp