feature: added 409 error handling from server response

This commit is contained in:
vladimir.kuznetsov 2025-02-15 13:58:48 +07:00
parent 52c12940c4
commit a1ca994c8b
8 changed files with 39 additions and 29 deletions

View file

@ -1,9 +1,11 @@
#ifndef APIUTILS_H
#define APIUTILS_H
#include <QNetworkReply>
#include <QObject>
#include "apiDefs.h"
#include "core/defs.h"
namespace apiUtils
{
@ -13,6 +15,8 @@ namespace apiUtils
apiDefs::ConfigType getConfigType(const QJsonObject &serverConfigObject);
apiDefs::ConfigSource getConfigSource(const QJsonObject &serverConfigObject);
amnezia::ErrorCode checkNetworkReplyErrors(const QList<QSslError> &sslErrors, QNetworkReply *reply);
}
#endif // APIUTILS_H