mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Treat 400 from security code submission to be incorrect code
This commit is contained in:
parent
9508cda585
commit
a04bfb39d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue