corestack_ error_ pages_ get
Read an environment's error pages.
When to use it
Read an environment's error and maintenance pages before changing them. The answer is the Control Panel's own: for each status code (404, 500, 502, 503, 504) whether visitors get the error page (page) or the app's own response (app), each page's message, the support email, the version every change needs, and whether Corefinity has locked the pages.
available is false while the environment cannot have its own error pages yet; unavailable_reason says why (runtime: after the site's next platform update; varnish: the Varnish part of that update; cse: not offered for this kind of site). pages[] summarises each page: state is platform (our page), custom (your HTML) or app (the app's own response), with its size in bytes and how many warnings it has. operation is the change being applied now, if any. locked is set while Corefinity has locked the pages: you can read and preview them, but not change them.
Each page's HTML is left out unless you set include_sources, because a page can be up to 64 KiB.
The defaults: 500, 502, 503 and 504 show the error page and 404 shows the app's own response. When the app answers a request to an API path (for example /rest/, /graphql, /wp-json/) or one asking for JSON, its response always passes through, whatever the settings; an error the web server answers itself on such a request (PHP not running, a request over 300 seconds) follows the settings.
Ask for it
Using the Corefinity MCP server, call corestack_error_pages_get with site_id 4211, include_sources true. (Read an environment's error pages.) Tell me what it returned.Inputs
Include each page's HTML source. Default false.
The environment row. At least 1.
Example call
{
"name": "corestack_error_pages_get",
"arguments": {
"site_id": 4211,
"include_sources": true
}
}If it is refused
| Reason | What to do |
|---|---|
feature_off | Error pages are not available to you yet. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |