Skip to content

Commit 23109a5

Browse files
footnote
1 parent e81ba26 commit 23109a5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/content/docs/rules/custom-errors/reference/error-tokens.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ To display a custom page for each error, create a separate page per error. For e
1616

1717
The following custom error tokens are required by their respective error pages:
1818

19-
| Token | Required for |
20-
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
21-
| `::CF_WIDGET_BOX::` | Interactive Challenge <br/>Country Challenge (Managed Challenge)<br/>Managed Challenge / I'm Under Attack Mode (Interstitial Page) |
22-
| `::IM_UNDER_ATTACK_BOX::` | JS Challenge |
23-
| `::CLOUDFLARE_ERROR_500S_BOX::` | 5XX Errors |
24-
| `::CLOUDFLARE_ERROR_1000S_BOX::` | 1XXX Errors |
19+
| Token | Required for |
20+
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
21+
| `::CF_WIDGET_BOX::` <br /> `::CAPTCHA_BOX::`[^1] | Interactive Challenge <br/>Country Challenge (Managed Challenge)<br/>Managed Challenge / I'm Under Attack Mode (Interstitial Page) |
22+
| `::IM_UNDER_ATTACK_BOX::` | JS Challenge |
23+
| `::CLOUDFLARE_ERROR_500S_BOX::` | 5XX Errors |
24+
| `::CLOUDFLARE_ERROR_1000S_BOX::` | 1XXX Errors |
25+
26+
[^1] `::CAPTCHA_BOX::` is not used for I'm Under Attack Mode.
2527

2628
Each custom error token has a default look and feel. However, you can use CSS to stylize each custom error tag using each tag's class ID. All the external resources like images, CSS, and scripts will be inlined during the process. As such, all external resources need to be available (that is, they must return `200 OK`) otherwise an error will be thrown.
2729

0 commit comments

Comments
 (0)