[API/Vulcan] Actually ignore 404 response on Addressbook.

This commit is contained in:
Kuba Szczodrzyński 2022-11-25 14:54:05 +01:00
parent 710d82da27
commit 86eb1a0f42
No known key found for this signature in database
GPG Key ID: 7919598F25F38819

View File

@ -338,6 +338,9 @@ open class VulcanHebe(open val data: DataVulcan, open val lastSync: Long?) {
setTextBody(jsonString, MediaTypeUtils.APPLICATION_JSON) setTextBody(jsonString, MediaTypeUtils.APPLICATION_JSON)
} }
} }
if (allow404)
allowErrorCode(HttpURLConnection.HTTP_NOT_FOUND)
} }
.allowErrorCode(HttpURLConnection.HTTP_BAD_REQUEST) .allowErrorCode(HttpURLConnection.HTTP_BAD_REQUEST)
.allowErrorCode(HttpURLConnection.HTTP_FORBIDDEN) .allowErrorCode(HttpURLConnection.HTTP_FORBIDDEN)