Skip to content

Commit c0cff48

Browse files
committed
If status code 412 is returned from code entry change error to describe acknowledgement required
1 parent 0d631e6 commit c0cff48

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Xcodes/AppleAPI/Sources/AppleAPI/Client.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public class Client {
180180
return (data, urlResponse)
181181
case 400, 401:
182182
throw AuthenticationError.incorrectSecurityCode
183+
case 412:
184+
throw AuthenticationError.appleIDAndPrivacyAcknowledgementRequired
183185
case let code:
184186
throw AuthenticationError.badStatusCode(statusCode: code, data: data, response: urlResponse)
185187
}

0 commit comments

Comments
 (0)