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:

CodeMeaning
200Request was succesful
400Invalid parameters in the request
401Authentication problem
403User does not have permission to access this resource
404Resource not found
500A problem internal to the SparkAI service