Errors

Verytis uses standard HTTP status codes and returns structured error responses with a consistent format.

Error Response Format

JSON
{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The provided API key is invalid.",
    "details": {},
    "request_id": "req_..."
  }
}

Error Codes

CodeHTTP StatusDescription
INVALID_REQUEST400The request body or query parameters are invalid
INVALID_COORDINATES400The provided coordinates are out of range
INVALID_RADIUS400The provided radius is out of range
INVALID_API_KEY401The API key is missing, malformed, or not recognized
API_KEY_REVOKED401The API key has been revoked
API_KEY_EXPIRED401The API key has expired
RESOURCE_NOT_FOUND404The requested resource does not exist
RATE_LIMIT_EXCEEDED429Too many requests
SOURCE_UNAVAILABLE503A required data source is temporarily unavailable
INTERNAL_ERROR500An unexpected server error occurred

Rate Limiting

The API enforces rate limits per API key:

  • 600 requests per minute per API key

When the rate limit is exceeded, the API returns HTTP 429 with rate limit headers:

HeaderDescription
X-RateLimit-LimitMaximum requests per window
X-RateLimit-RemainingRemaining requests in current window
X-RateLimit-ResetSeconds until the window resets

Request IDs

Every API response includes a request_id in the meta object (success) or error object (failure). Include this ID when reporting issues.