Set the error for HTTP code 403 to be a ContentAccessDenied error

Change-Id: I1404bba998cdd7d426c8491908c53edcd3ebc7fb
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
bb10
Andy Shaw 2016-12-20 08:41:46 +01:00 committed by Timur Pocheptsov
parent 68638efa29
commit 079aa711ec
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ static QNetworkReply::NetworkError statusCodeFromHttp(int httpStatusCode, const
break;
case 403: // Access denied
code = QNetworkReply::ContentOperationNotPermittedError;
code = QNetworkReply::ContentAccessDenied;
break;
case 404: // Not Found

View File

@ -166,7 +166,7 @@ QNetworkReplyPrivate::QNetworkReplyPrivate()
any credentials offered (if any)
\value ContentAccessDenied the access to the remote
content was denied (similar to HTTP error 401)
content was denied (similar to HTTP error 403)
\value ContentOperationNotPermittedError the operation requested
on the remote content is not permitted