Custom Pages limits
Check the scope of Custom Pages and the bounds of a custom page set and its pages, from the minimum page count to the range of each field.
Custom Pages is a Platform Resource that replaces the error response returned by a Connector 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, 16 client errors (4xx) and six server errors (5xx).
- Workloads: a Workload 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.
- 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 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, whose fields map to Custom Pages fields in 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.