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
| Status | Code | What it means |
|---|---|---|
| 400 | invalid_request | The request is not valid. errors says which fields, and why. |
| 401 | unauthorized | No key, or a key that does not work. |
| 402 | plan_limit_reached | This month's jobs of the Free plan are used. |
| 403 | forbidden | The key may not do this. |
| 403 | https_required | The request came over http. |
| 404 | not_found | No such thing, or the key may not see it. |
| 409 | idempotency_conflict | This Idempotency-Key went with another request. |
| 409 | job_not_cancellable | The job is done: it printed, failed, expired or was cancelled. |
| 409 | job_not_confirmable | There is no paper to judge yet. |
| 413 | payload_too_large | The request is too large. |
| 415 | unsupported_media_type | Send JSON. |
| 422 | unsupported_option | The printer cannot do this setting. |
| 422 | size_mismatch | The page does not fit the paper. |
| 422 | file_unreachable | The file could not be downloaded from its URL. |
| 422 | no_printer_fits | No printer of the workstation fits. |
| 429 | rate_limited | Too many requests. Retry-After says when to send again. |
| 503 | service_unavailable | Not 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