Error Handling (old)
Handle errors gracefully when using Synth API.
HTTP Status Codes
Code
Meaning
Action
200
Success
Process response
400
Bad Request
Check authentication header
401
Unauthorized
Check API key
404
Not Found
Check parameters or data availability
429
Rate Limited
Retry after delay
500
Server Error
Retry later
Error Response Format
Errors return JSON with a message field:
{"message": "Unauthorized"}{"message": "missing key in request header"}Some endpoints return a plain string for data errors:
"No prediction available"Common Errors
Best Practices
Last updated