Every refusal says why.

Errors come as problem+json with a stable code. Branch on the code, show the message.

The message

title and detail say it in English, or in Greek with Accept-Language: el.

The same refusal, in Greek422 Unprocessable Content

Codes you'll meet

StatusCodeWhat it means
400invalid_requestThe request is not valid. errors says which fields, and why.
401unauthorizedNo key, or a key that does not work.
402plan_limit_reachedThis month's jobs of the Free plan are used.
403forbiddenThe key may not do this.
403https_requiredThe request came over http.
404not_foundNo such thing, or the key may not see it.
409idempotency_conflictThis Idempotency-Key went with another request.
409job_not_cancellableThe job is done: it printed, failed, expired or was cancelled.
409job_not_confirmableThere is no paper to judge yet.
413payload_too_largeThe request is too large.
415unsupported_media_typeSend JSON.
422unsupported_optionThe printer cannot do this setting.
422size_mismatchThe page does not fit the paper.
422file_unreachableThe file could not be downloaded from its URL.
422no_printer_fitsNo printer of the workstation fits.
429rate_limitedToo many requests. Retry-After says when to send again.
503service_unavailableNot available right now. Try again.

Each call's own errors are in the API reference.

Limits

20 MB a file. 300 jobs a minute for each key, 600 for the workspace, and 600 requests a minute for each key; past that, 429 with Retry-After. On the free plan, 500 printed jobs a month; past that, 402 says when it starts again.

Too many jobs in a minute429 Too Many Requests