If status code 412 is returned from code entry change error to describe acknowledgement required

This commit is contained in:
Daniel Chick 2023-12-05 18:12:57 -06:00
parent 0d631e6628
commit c0cff4822c

View file

@ -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)
}