Skip to content

Errors & Rate Limits

Fotobots enforces rate limits to ensure platform stability and equitable resource distribution across all events.


Rate Limit Headers

Every HTTP response includes standard rate limit metadata:

HeaderDescription
RateLimit-LimitThe maximum number of requests allowed in the current time window.
RateLimit-RemainingThe number of remaining requests allowed before throttling.
RateLimit-ResetTime in seconds until the current rate limit window resets.

Standard Error Envelope

When a request fails, the API returns a standardized JSON error response:

{
"error": {
"code": "BAD_REQUEST",
"message": "albumId is required and must be a valid UUID",
"details": {
"field": "albumId"
}
}
}

Common Error Codes

Status CodeError CodeMeaning & Recommended Resolution
400BAD_REQUESTValidation failed. Check required parameters and Zod schema.
401UNAUTHORIZEDInvalid or missing x-api-key header.
403FORBIDDENAPI Key lacks permission scope for this action.
429RATE_LIMITEDRequest threshold exceeded. Implement exponential backoff.
500INTERNAL_ERRORServer exception. Contact support if the issue persists.