I think it is better to use constants from QNetworkReply class: `QNetworkReply.ProtocolFailure`, etc.