There is no error checking in plaintext mode. The gzip compressor is experimental in API, but not in wireformat. You could use your own compressor (or any data transform, such as appending a checksum) on the data to get.
That said, TLS provides this for you already. It might be easier to just use self signed certs and ignore checking the CA, as TLS is pretty fast. (faster than gzip).