Set the error for HTTP code 403 to be a ContentAccessDenied error
Change-Id: I1404bba998cdd7d426c8491908c53edcd3ebc7fb Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>bb10
parent
68638efa29
commit
079aa711ec
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue