API calls to the SparkAI service will return an HTTP status code that reflects the status of the engagement. HTTP status codes follow classic conventions where possible.
Requests that don't succeed will return either a 4xx or 5xx error. The 4xx range means there was a problem with the request, like a missing parameter.
Examples of status codes returned are below:
| Code | Meaning |
|---|---|
| 200 | Request was succesful |
| 400 | Invalid parameters in the request |
| 401 | Authentication problem |
| 403 | User does not have permission to access this resource |
| 404 | Resource not found |
| 500 | A problem internal to the SparkAI service |
