Learn how to handle errors from the Caret API
Property | Description |
---|---|
code | A string identifier for the error |
message | A human-readable description of the error |
param | The parameter that caused the error (if applicable) |
type | The type of error that occurred |
Status Code | Description |
---|---|
400 | Bad Request - The request contains invalid parameters |
401 | Unauthorized - No valid API key provided |
403 | Forbidden - The API key doesn’t have permission to perform the request |
404 | Not Found - The requested resource doesn’t exist |
409 | Conflict - The request conflicts with another request or the resource’s state |
422 | Unprocessable Entity - The request was well-formed but contains semantic errors |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on Caret’s end |
429 Too Many Requests
error, use the retry_after
value to determine when to retry the request.
500
errors), implement an exponential backoff strategy to retry the request after increasing intervals.