QNetworkReply error code for HTTP 403
-
I am working on a small application which requires to implement Google's ClientLogin protocol. In some cases it requires a second authentication test which is practically a CAPTCHA test.
If CAPTCHA validation is required after the first step an HTTP 403 error comes back and the reply contains the information regarding the second step (CAPTCHA token and CAPTCHA image URL).
Question: what error code QNetworkReply gives back for HTTP 403?
-
QNetworkReply::ContentOperationNotPermittedError, see http://qt.gitorious.com/qt/qt/blobs/master/src/network/access/qnetworkaccesshttpbackend.cpp#line242 :
@
case 403: // Access denied
code = QNetworkReply::ContentOperationNotPermittedError;
break;
@ -
I don't think is a remapping because http 403 is a forbidden code so is the same.
[quote author="VCsala" date="1292592484"]Thanks, it helped. (Just to better understand: the remapping of the codes is mainly because NAM can handle several protocols, isn't it?)[/quote]