Skip to content
Keenpix docs
API reference

Responses & errors

Headers and status codes you can expect.

Success headers

HeaderValue
Content-Typeimage/avif · image/webp · image/jpeg · image/png · image/svg+xml
Cache-Controlpublic, max-age=31536000, immutable
VaryAccept (for CDNs that cache per-format under fmt=auto)

Status codes

StatusMeaning
200Optimized image returned
400Missing project or source URL
403Source host is not on the allowlist, or resolves to a private/SSRF target
404Unknown project
413Origin image exceeds the size cap (KEENPIX_MAX_ORIGIN_BYTES)
502Origin fetch failed
503Transform concurrency limit reached — retry shortly
504Origin request timed out (KEENPIX_ORIGIN_TIMEOUT_MS)

A 403 almost always means the source host isn't on the project's allowlist. Add it under Settings → Security → Allowed hosts.

On this page