Error Handling
Handle API errors gracefully.
All API errors return a JSON object with an error field describing the issue.
error-response.json
{
"error": "Invalid API key",
"status": 401
}Handle API errors gracefully.
All API errors return a JSON object with an error field describing the issue.
{
"error": "Invalid API key",
"status": 401
}