Errors and limits
Diagnose failed requests and decide whether to retry.
Read an error
Start with the HTTP status. The REST API can return a machine-readable identifier in error or code, plus a human-readable message where available. Auth failures may return only a message alongside success: false.
| Status | What to do |
|---|---|
400 |
Correct the request before retrying. Check the hostname, filenames, multipart encoding, and ZIP entry point. |
401 |
Supply the required credentials, check ownership, or request a new verification code, depending on the operation. |
403 |
Check key eligibility or project ownership. CUSTOM_DOMAIN_NOT_OWNED means the custom domain is not connected to your account; connect it before publishing. |
404 |
Recheck the hostname with Fetch profile. DOMAIN_DOES_NOT_EXIST means the custom domain is not connected to your account. |
413 |
Check file size, storage, or project count. The production gateway caps the full multipart body at 1000 MiB. |
429 |
Wait for the daily quota to reset. The documented default is 200 requests per key per day. Daily request limits |
5xx |
If a write may have reached the server, check the project first. Retry only after checking whether it completed. |
Check usage and project limits
Solo allows five non-trashed projects under the upload API’s project-count check. Pro checks 15 non-trashed projects created in the current month. Updates to a project you own are exempt from these new-project count checks. Storage and file limits still apply. Custom domains are limited to 5 on Solo, 15 on Pro, and 25 on Pro Max.
The full multipart request is capped at 1000 MiB. An email-only preview lasts about one hour. MCP accepts one file per publish or update, up to 15 MiB; use a ZIP to send a multi-file site. File and storage limits can vary by account. The agent view includes a consolidated limits table.
Recover from an uncertain upload
After a timeout or disconnected response, look up the expected hostname before sending the upload again. When you omit domain, a repeated create request can create another project with a new hostname. Check Fetch profile to confirm which projects exist.