Errors
Ada’s API uses conventional HTTP response codes to indicate the success or failure of API requests. In general:
- Codes in the
2xxrange indicate success - Codes in the
4xxrange indicate errors caused by the request - Codes in the
5xxrange indicate errors on our servers
HTTP status code summary
Error response format
All error responses follow this format:
Validation errors
For validation errors ("type": "validation_error"), details is always a list of error objects, or null when there is no field-level detail. Each error object contains:
parameter: A JSON path identifying the field that failed validation (for example,$[0].knowledge_source_id).location: Where the parameter was found in the request (for example,body).message: A human-readable description of the problem.