diff --git a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift index 21dd487..18569b1 100644 --- a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift +++ b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift @@ -126,7 +126,7 @@ public class Client { switch urlResponse.statusCode { case 200..<300: return (data, urlResponse) - case 401: + case 400, 401: throw AuthenticationError.incorrectSecurityCode case let code: throw AuthenticationError.badStatusCode(code, data, urlResponse)