CorefinityCorefinityDocs
Open the Control PanelControl Panel
Web server rules · 15 of 19

Get the errors since a revision

Answers up to 50 web server error lines logged while the revision was live, to see whether a change of rules broke something. available is false, with a reason, when the revision never went live or the site's logs cannot be read.

GET/api/corestack/sites/{site}/nginx-rules/revisions/{revision}/errors

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

revisionintegerRequired

The id of a revision of this site, from the list's id. At least 1.

Returns

200 The error lines, or why there are none to read.

Fields of the 200 answer
availablebooleanRequired
countinteger

Every error line in the range, also when more than 50.

fromstring

The start of the range: when the revision went live, or the oldest log kept.

linesarray of objects

Up to 50 items.

Fields of each item
atstring or nullRequired

Format: date-time.

levelstringRequired
messagestringRequired
reasonstring

When available is false: never_live, logs_not_collected, logs_unavailable or another reason the logs give.

tostring or null

When the next revision went live. Null for the live one.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/sites/1042/nginx-rules/revisions/1/errors \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "available": true,
  "count": 1,
  "from": "2026-11-02T15:41:09Z",
  "lines": [
    {
      "at": "2026-11-03T08:12:45Z",
      "level": "error",
      "message": "open() \"/var/www/harbourandfinch.example.com/htdocs/private-report.pdf\" failed (2: No such file or directory)"
    }
  ],
  "to": null
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT