Errors

Standard error format and HTTP status codes returned by the AyeWatch API.

Error Response Shape

All API errors return a consistent JSON structure:

json
{
  "error": {
    "message": "Human-readable error description",
    "status": 400
  }
}

The status field mirrors the HTTP response status code. Always check the HTTP status first, then read error.message for details.

HTTP Status Codes

StatusNameWhen it occurs
400Bad RequestThe request body or parameters are invalid or missing required fields.
401UnauthorizedAPI key is missing, malformed, or does not exist.
403ForbiddenThe API key is valid but lacks permission — e.g. free plan or max API keys reached.
404Not FoundThe requested resource (topic ID) does not exist or belongs to another user.
429Too Many RequestsRate limit exceeded.
500Internal Server ErrorAn unexpected error occurred on our side. Please retry or contact support.

Example Error Responses

401 — Missing or invalid API key
json
{
  "error": {
    "message": "Unauthorized",
    "status": 401
  }
}
403 — Free plan
json
{
  "error": {
    "message": "API access requires a paid plan",
    "status": 403
  }
}
403 — Max API keys reached
json
{
  "error": {
    "message": "You have reached the maximum of 10 active API keys",
    "status": 403
  }
}
404 — Topic not found
json
{
  "error": {
    "message": "Topic not found",
    "status": 404
  }
}

Need Help?

If you encounter a persistent 500 error or unexpected behavior, please contact support with the request details and timestamps.

Login