[HN Gopher] Cloudflare error page generator
___________________________________________________________________
Cloudflare error page generator
Author : sawirricardo
Score : 58 points
Date : 2025-12-10 02:18 UTC (9 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| hk1337 wrote:
| Can you actually customize that Cloudflare error page? I thought
| that was their error page when they lose connection with your
| site and custom error pages was just the ones your app creates,
| like 404, 403, etc?
| zamadatix wrote:
| I think the intent is for joke pages, like the demo link which
| acts like error 500 saying the host is on fire etc but really
| serves as 200 OK, not your actual Cloudflare service errors.
| esseph wrote:
| On free plans you can't, on business/enterprise plans you can.
|
| Edit: Gemini says you could make a custom worker and do a 5XX
| redirect that way, but I haven't tried it. Does make sense
| though.
| thewisenerd wrote:
| the custom error page is configurable at a domain (zone)
| level
|
| which sometimes gets annoying because branding for subdomains
| could be different.
|
| https://developers.cloudflare.com/rules/custom-
| errors/edit-e...
| esseph wrote:
| > Error Pages do not apply to responses with an HTTP status
| code of 500, 501, 503, or 505. These exceptions help avoid
| issues with specific API endpoints and other web
| applications. You can still customize responses for these
| status codes using Custom Error Rules.
|
| From that page ;)
| ascorbic wrote:
| This works for errors at the origin or in a Worker, but won't
| for errors at the edge, because those are in front of
| Workers.
| thm wrote:
| You can, on the $30 plan - you can give it a hidden url on your
| current domain and it will cache & serve that content.
| slig wrote:
| I've been thinking about returning a fake error page instead of
| the "you are banned" or "you country has been blocked".
___________________________________________________________________
(page generated 2025-12-10 12:00 UTC)