From c0cff4822caa8185b19e8f801288bfdccf4508df Mon Sep 17 00:00:00 2001 From: Daniel Chick Date: Tue, 5 Dec 2023 18:12:57 -0600 Subject: [PATCH] If status code 412 is returned from code entry change error to describe acknowledgement required --- Xcodes/AppleAPI/Sources/AppleAPI/Client.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift index 6f33a4a..5b9bd08 100644 --- a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift +++ b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift @@ -180,6 +180,8 @@ public class Client { return (data, urlResponse) case 400, 401: throw AuthenticationError.incorrectSecurityCode + case 412: + throw AuthenticationError.appleIDAndPrivacyAcknowledgementRequired case let code: throw AuthenticationError.badStatusCode(statusCode: code, data: data, response: urlResponse) }