Show all your application error using Cloudflare Error Page

https://news.ycombinator.com/rss Hits: 12
Summary

Cloudflare Error Page Generator 馃摙 Update (2025/12/09): All icons used in the error page have been fully redrawn as vector assets. These icons along with the stylesheet are also inlined into a single file of the error page, eliminating any need of hosting additional resources and ensuring better experience for you and your end users. What does this project do? This project creates customized error pages that mimics the well-known Cloudflare error page. You can also embed it into your website. Online Editor Here's an online editor to create customized error pages. Try it out here. (And thank @rynzland for the idea!) Quickstart for Programmers Python Install cloudflare-error-page with pip. pip install git+https://github.com/donlon/cloudflare-error-page.git Then you can generate an error page with the render function. (example.py) import webbrowser from cloudflare_error_page import render as render_cf_error_page # This function renders an error page based on the input parameters error_page = render_cf_error_page ({ # Browser status is ok 'browser_status' : { "status" : 'ok' , }, # Cloudflare status is error 'cloudflare_status' : { "status" : 'error' , "status_text" : 'Error' , }, # Host status is also ok 'host_status' : { "status" : 'ok' , "location" : 'example.com' , }, # can be 'browser', 'cloudflare', or 'host' 'error_source' : 'cloudflare' , # Texts shown in the bottom of the page 'what_happened' : '<p>There is an internal server error on Cloudflare \' s network.</p>' , 'what_can_i_do' : '<p>Please try again in a few minutes.</p>' , }) with open ( 'error.html' , 'w' ) as f : f . write ( error_page ) webbrowser . open ( 'error.html' ) You can also see live demo here. A demo server using Flask is also available in flask_demo.py. // Coming soon! PHP /* Coming soon! */ More Examples Catastrophic infrastructure failure params = { "title" : "Catastrophic infrastructure failure" , "more_information" : { "for" : "no information" , } , "browser_status" : { "status" : "error"...

First seen: 2025-12-10 03:31

Last seen: 2025-12-10 14:33