Errors and Status Codes
Sayvy AI uses conventional HTTP response codes to indicate the success or failure of an API request. In general:- Codes in the
2xxrange indicate success. - Codes in the
4xxrange indicate an error that failed given the information provided (e.g. missing required field or authentication failure). - Codes in the
5xxrange indicate an error with Sayvy AI servers.
Error Response Structure
All error responses return a standardized JSON object:Error Object Attributes
code: A machine-readable string indicating the exact error category.message: A human-readable description explaining why the error occurred and how to fix it.type: Broad error classification (e.g.invalid_request_error,authentication_error,rate_limit_error,api_error).param: The specific request parameter that triggered the error (if applicable).doc_url: Direct hyperlink to resolution documentation.
