Connect a slot to your QNetworkReply::error() signal and you will be advised of network and other errors. If you are connecting to a server but requesting a page that does not exist then you will receive whatever the server sends as am HTTP 404 error message as the content of the stream.