Loading app/src/main/java/foundation/e/apps/data/gplay/utils/GPlayHttpClient.kt +2 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ class GPlayHttpClient @Inject constructor( private const val HTTP_TIMEOUT_IN_SECOND = 10L private const val SEARCH = "search" private const val SEARCH_SUGGEST = "searchSuggest" private const val STATUS_CODE_OK = 200 private const val STATUS_CODE_UNAUTHORIZED = 401 private const val STATUS_CODE_TOO_MANY_REQUESTS = 429 const val STATUS_CODE_TIMEOUT = 408 Loading Loading @@ -206,7 +207,7 @@ class GPlayHttpClient @Inject constructor( } } if (code != 200) { if (code !in listOf(STATUS_CODE_OK, STATUS_CODE_UNAUTHORIZED)) { throw GplayHttpRequestException(code, response.message) } Loading Loading
app/src/main/java/foundation/e/apps/data/gplay/utils/GPlayHttpClient.kt +2 −1 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ class GPlayHttpClient @Inject constructor( private const val HTTP_TIMEOUT_IN_SECOND = 10L private const val SEARCH = "search" private const val SEARCH_SUGGEST = "searchSuggest" private const val STATUS_CODE_OK = 200 private const val STATUS_CODE_UNAUTHORIZED = 401 private const val STATUS_CODE_TOO_MANY_REQUESTS = 429 const val STATUS_CODE_TIMEOUT = 408 Loading Loading @@ -206,7 +207,7 @@ class GPlayHttpClient @Inject constructor( } } if (code != 200) { if (code !in listOf(STATUS_CODE_OK, STATUS_CODE_UNAUTHORIZED)) { throw GplayHttpRequestException(code, response.message) } Loading