Error Codes
Swift uses industry-best practices to handle errors. You can expect three outcomes when interacting with our APIs. HTTP status code 2XX indicates success, 4XX indicates an error due to information provided by the client application, and 5XX indicates an error with the API provider.
Authentication API Error Codes
Here are the errors you may encounter when calling the Authentication APIs.
| Status Code | Reason Phrase | Error | Recommendations |
|---|---|---|---|
| 400 | Bad Request. | invalid_grant | Refer to Authentication to find out the correct values to use. If you are using developer tools, then check the corresponding documentation to make sure your configuration is correct. |
| 400 | Bad Request. | invalid_request | The request may contain invalid form parameters or missing mandatory parameters. Refer to Authentication to find out the correct values to use. If you are using developer tools, then check the corresponding documentation to make sure your configuration is correct. |
| 400 | Bad Request. | invalid_scope | Make sure your app contains the API product you are trying to access. If you are using a Swift-issued certificate, then make sure the certificate is granted the RBAC roles of the API. If you are using License ID and Secret, then make sure the contract is linked. Refer to to find out the correct values to use. |
Previous page Pagination
Next pageAPI Providers