# Custom Pages limits

[Custom Pages](/en/documentation/platform/custom-pages/) is a Platform Resource that replaces the error response returned by a [Connector](/en/documentation/platform/connectors/) with a page of your own, one page per error status code. A custom page set is the named list that groups those pages. This page states where Custom Pages acts and the bounds Azion applies to a set and to each page in it.

---

## Scope

- **Status codes**: a page can replace only a status code from the 22 in [Status codes](/en/documentation/platform/custom-pages/settings/#status-codes), 16 client errors (4xx) and six server errors (5xx).
- **Workloads**: a [Workload](/en/documentation/platform/workloads/) uses a custom page set only once that Workload's deployment sets that custom page set. A Workload holds at most one deployment, so one set covers every hostname of the Workload. For the deployment fields, refer to [Workload settings](/en/documentation/platform/workloads/settings/#deployment).
- **Timing**: an assigned set serves only after the change to the deployment propagates, over several minutes, and Azion does not guarantee when. Repeat the request until the page answers, as [Propagation](/en/documentation/platform/workloads/how-it-works/#propagation) explains.
- **API v3**: Custom Pages is the API v4 model for error pages. An Application that still runs on API v3 sets its error pages in [Error Responses](/en/documentation/platform/custom-pages/error-responses/), whose fields map to Custom Pages fields in [Interfaces](/en/documentation/platform/custom-pages/settings/#interfaces).

---

## Default limits

This table states the page count of a custom page set and what happens to a set below it.

| Scope                     | Limit      | Past the limit      |
| ------------------------- | ---------- | ------------------- |
| Pages per custom page set | At least 1 | The set is refused. |

The API refuses an empty set with `Ensure this field has at least 1 elements.` Azion CLI prints that message inside `Error: Failed to create Custom Page: [...]`, and Azion Console shows `You must have at least one custom page code`.

Four further bounds apply: a set `name` takes 1 to 255 characters, a page `ttl` takes 0 to 31,536,000 seconds, a page `uri` takes 1 to 250 characters, and a page `custom_status_code` takes 100 to 599. For the fields these bounds apply to, refer to [Custom page settings](/en/documentation/platform/custom-pages/settings/).

---

## Related resources

- [Custom page settings](/en/documentation/platform/custom-pages/settings.md): The fields of a custom page set and its pages, with the type, the default, and the values each bound on this page applies to.
- [How Custom Pages works](/en/documentation/platform/custom-pages/how-it-works.md): How a page replaces an error response, and which status codes receive Azion's default error page.
- [Troubleshoot Custom Pages](/en/documentation/platform/custom-pages/troubleshooting.md): The fix for a custom page set refused with no page, and for an error page that does not appear.
- [Workload settings](/en/documentation/platform/workloads/settings.md#deployment): The deployment fields that set the Application, the Firewall, and the custom page set of a Workload.
