mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Fix access denial messages
Updated error messages for access denial from (401) to (403) for remote content. Added (401) status code to authentication error messages. PR #22774.
This commit is contained in:
parent
8cd1a80852
commit
7648a2838d
1 changed files with 2 additions and 2 deletions
|
@ -279,13 +279,13 @@ QString Net::DownloadHandlerImpl::errorCodeToString(const QNetworkReply::Network
|
||||||
case QNetworkReply::ProxyAuthenticationRequiredError:
|
case QNetworkReply::ProxyAuthenticationRequiredError:
|
||||||
return tr("The proxy requires authentication in order to honor the request but did not accept any credentials offered");
|
return tr("The proxy requires authentication in order to honor the request but did not accept any credentials offered");
|
||||||
case QNetworkReply::ContentAccessDenied:
|
case QNetworkReply::ContentAccessDenied:
|
||||||
return tr("The access to the remote content was denied (401)");
|
return tr("The access to the remote content was denied (403)");
|
||||||
case QNetworkReply::ContentOperationNotPermittedError:
|
case QNetworkReply::ContentOperationNotPermittedError:
|
||||||
return tr("The operation requested on the remote content is not permitted");
|
return tr("The operation requested on the remote content is not permitted");
|
||||||
case QNetworkReply::ContentNotFoundError:
|
case QNetworkReply::ContentNotFoundError:
|
||||||
return tr("The remote content was not found at the server (404)");
|
return tr("The remote content was not found at the server (404)");
|
||||||
case QNetworkReply::AuthenticationRequiredError:
|
case QNetworkReply::AuthenticationRequiredError:
|
||||||
return tr("The remote server requires authentication to serve the content but the credentials provided were not accepted");
|
return tr("The remote server requires authentication to serve the content but the credentials provided were not accepted (401)");
|
||||||
case QNetworkReply::ProtocolUnknownError:
|
case QNetworkReply::ProtocolUnknownError:
|
||||||
return tr("The Network Access API cannot honor the request because the protocol is not known");
|
return tr("The Network Access API cannot honor the request because the protocol is not known");
|
||||||
case QNetworkReply::ProtocolInvalidOperationError:
|
case QNetworkReply::ProtocolInvalidOperationError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue