mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-26 14:57:37 +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 {
|
switch urlResponse.statusCode {
|
||||||
case 200..<300:
|
case 200..<300:
|
||||||
return (data, urlResponse)
|
return (data, urlResponse)
|
||||||
case 401:
|
case 400, 401:
|
||||||
throw AuthenticationError.incorrectSecurityCode
|
throw AuthenticationError.incorrectSecurityCode
|
||||||
case let code:
|
case let code:
|
||||||
throw AuthenticationError.badStatusCode(code, data, urlResponse)
|
throw AuthenticationError.badStatusCode(code, data, urlResponse)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue