# OktaError - Okta Auth Swift SDK

**URL:** <https://devforum.okta.com/t/oktaerror-okta-auth-swift-sdk/5546>\
**Category:** Questions\
**Created:** [July 2, 2019, 9:56pm UTC](https://devforum.okta.com/t/oktaerror-okta-auth-swift-sdk/5546 "2019-07-02T21:56:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shagans](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shagans](https://devforum.okta.com/u/shagans)\
**Post date:** [July 2, 2019, 9:56pm UTC](https://devforum.okta.com/t/oktaerror-okta-auth-swift-sdk/5546/1 "2019-07-02T21:56:39Z")

</div>

Having some trouble finding documentation surrounding the Swift SDK (Okta-Auth-swift) -Trying to decipher what errors are used for what.

**public**  **enum** OktaError: Error {

**case** errorBuildingURLRequest - this is self describing

**case** connectionError(Error) - this is self describing

**case** emptyServerResponse - this is self describing

**case** invalidResponse - **A little foggy on this - can you elaborate?**

**case** responseSerializationError(Error, Data) - this is self describing

**case** serverRespondedWithError(OktaAPIErrorResponse) - this is self describing

**case** unexpectedResponse - **Can you elaborate on this?**

**case** wrongStatus(String) -

**case** alreadyInProgress

**case** unknownStatus(OktaAPISuccessResponse) - **This one is odd. UnknownStatus error with a success response param. Can you elaborate on this?**

**case** internalError(String) - this is self describing

**case** invalidParameters(String) - this is self describing

}

---

<div class="post-metadata">

**Author:** ![shagans](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@shagans](https://devforum.okta.com/u/shagans)\
**Post date:** [July 8, 2019, 3:06pm UTC](https://devforum.okta.com/t/oktaerror-okta-auth-swift-sdk/5546/2 "2019-07-08T15:06:14Z")

</div>

Can anyone from the Okta team provide some insight?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 24, 2024, 11:26pm UTC](https://devforum.okta.com/t/oktaerror-okta-auth-swift-sdk/5546/3 "2024-01-24T23:26:44Z")

</div>

Closed on January 24, 2024, 11:26pm UTC


