Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    The Warner Bros. acquisition: a timeline of events so far

    Xbox’s new boss could herald the changes the division needs | Opinion

    “He truly cared about games, about the industry, and about the people making them” – The industry on Phil Spencer

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      What the polls say about how Americans are using AI

      February 27, 2026

      Tensions between the Pentagon and AI giant Anthropic reach a boiling point

      February 21, 2026

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026
    • Business

      FCC approves the merger of cable giants Cox and Charter

      February 28, 2026

      Finding value with AI and Industry 5.0 transformation

      February 28, 2026

      How Smarsh built an AI front door for regulated industries — and drove 59% self-service adoption

      February 24, 2026

      Where MENA CIOs draw the line on AI sovereignty

      February 24, 2026

      Ex-President’s shift away from Xbox consoles to cloud gaming reportedly caused friction

      February 24, 2026
    • Crypto

      Palladium Price Approaches a Critical Turning Point

      February 28, 2026

      Trump to Takeover Cuba, Iran War Tensions Rise, Bitcoin Crashes Again

      February 28, 2026

      A 40% XRP Crash Couldn’t Shake Its Strongest Holders — Is $1.70 Still Possible?

      February 28, 2026

      Why Is the US Stock Market Down Today?

      February 28, 2026

      SoFi Becomes First US Chartered Bank to Support Solana Deposits

      February 28, 2026
    • Technology

      Anthropic vs. The Pentagon: what enterprises should do

      February 28, 2026

      OpenAI strikes a deal with the Defense Department to deploy its AI models

      February 28, 2026

      Trump orders federal agencies to drop Anthropic services amid Pentagon feud

      February 28, 2026

      Google’s Opal just quietly showed enterprise teams the new blueprint for building AI agents

      February 28, 2026

      OpenAI’s big investment from Amazon comes with something else: new ‘stateful’ architecture for enterprise agents

      February 28, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Show all your application error using Cloudflare Error Page
    Technology

    Show all your application error using Cloudflare Error Page

    TechAiVerseBy TechAiVerseDecember 10, 2025No Comments3 Mins Read3 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Show all your application error using Cloudflare Error Page
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Show all your application error using Cloudflare Error Page

    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)

    There is an internal server error on Cloudflare’s network.

    ‘,
    ‘what_can_i_do’: ‘

    Please try again in a few minutes.

    ‘,
    })

    with open(‘error.html’, ‘w’) as f:
    f.write(error_page)

    webbrowser.open(‘error.html’)”>

    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': '

    There is an internal server error on Cloudflare's network.

    '
    , 'what_can_i_do': '

    Please try again in a few minutes.

    '
    , }) 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.

    Node.js

    PHP

    More Examples

    Catastrophic infrastructure failure

    There is a catastrophic failure.

    “,
    “what_can_i_do”: “

    Please try again in a few years.

    “,
    }”>

    params = {
        "title": "Catastrophic infrastructure failure",
        "more_information": {
            "for": "no information",
        },
        "browser_status": {
            "status": "error",
            "status_text": "Out of Memory",
        },
        "cloudflare_status": {
            "status": "error",
            "location": "Everywhere",
            "status_text": "Error",
        },
        "host_status": {
            "status": "error",
            "location": "example.com",
            "status_text": "On Fire",
        },
        "error_source": "cloudflare",
        "what_happened": "

    There is a catastrophic failure.

    "
    , "what_can_i_do": "

    Please try again in a few years.

    "
    , }

    Demo

    Web server is working

    This site is still working. And it looks great.

    “,
    “what_can_i_do”: “

    Visit the site before it crashes someday.

    “,
    }”>

    params = {
        "title": "Web server is working",
        "error_code": 200,
        "more_information": {
            "hidden": True,
        },
        "browser_status": {
            "status": "ok",
            "status_text": "Seems Working",
        },
        "cloudflare_status": {
            "status": "ok",
            "status_text": "Often Working",
        },
        "host_status": {
            "status": "ok",
            "location": "example.com",
            "status_text": "Almost Working",
        },
        "error_source": "host",
        "what_happened": "

    This site is still working. And it looks great.

    "
    , "what_can_i_do": "

    Visit the site before it crashes someday.

    "
    , }

    Demo

    FAQ

    How to show real user IP / Cloudflare Ray ID / data center location in the error page so that it looks more realistic?

    Ray ID and user IP field in the error page can be set by ray_id and client_ip properties in the params argument passed to the render function. The real Cloudflare Ray ID and the data center location of current request can be extracted from the Cf-Ray request header (e.g. Cf-Ray: 230b030023ae2822-SJC). Detailed description of this header can be found in Cloudflare documentation.

    To lookup the city name of the data center corresponding to the three letter code in the header, you can use a location list from here

    The demo server runs in our website did handle these. Take a look at this file for reference.

    See also

    • cloudflare-error-page-3th.pages.dev:

      Error page of every HTTP status code (reload to show random page).

    • oftx/cloudflare-error-page:

      React reimplementation of the original page, and can be deployed directly to Cloudflare Pages.

    Full Parameter Reference

    There is an internal server error on Cloudflare’s network.

    “,
    “what_can_i_do”: “

    Please try again in a few minutes.

    “,

    “ray_id”: ‘0123456789abcdef’, // if not set, random hex string is shown
    “client_ip”: ‘1.1.1.1’,

    // Configuration for ‘Performance & security by …’ in the footer
    “perf_sec_by”: {
    “text”: “Cloudflare”,
    “link”: “https://www.cloudflare.com/”,
    },
    }”>

    {
        "html_title": "cloudflare.com | 500: Internal server error",
        "title": "Internal server error",
        "error_code": 500,
        "time": "2025-11-18 12:34:56 UTC",  // if not set, current UTC time is shown
    
        // Configuration for "Visit ... for more information" line
        "more_information": {
            "hidden": false,
            "text": "cloudflare.com", 
            "link": "https://www.cloudflare.com/",
            "for": "more information",
        },
    
        // Configuration for the Browser/Cloudflare/Host status
        "browser_status": {
            "status": "ok", // "ok" or "error"
            "location": "You",
            "name": "Browser",
            "status_text": "Working",
            "status_text_color": "#9bca3e",
        },
        "cloudflare_status": {
            "status": "error",
            "location": "Cloud",
            "name": "Cloudflare",
            "status_text": "Error",
            "status_text_color": "#bd2426",
        },
        "host_status": {
            "status": "ok",
            "location": "The Site",
            "name": "Host",
            "status_text": "Working",
            "status_text_color": "#9bca3e",
        },
        "error_source": "host", // Position of the error indicator, can be "browser", "cloudflare", or "host"
    
        "what_happened": "

    There is an internal server error on Cloudflare's network.

    "
    , "what_can_i_do": "

    Please try again in a few minutes.

    "
    , "ray_id": '0123456789abcdef', // if not set, random hex string is shown "client_ip": '1.1.1.1', // Configuration for 'Performance & security by ...' in the footer "perf_sec_by": { "text": "Cloudflare", "link": "https://www.cloudflare.com/", }, }
    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticlePost-transformer inference: 224× compression of Llama-70B with improved accuracy
    Next Article NYC congestion pricing cuts air pollution by a fifth in six months
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Anthropic vs. The Pentagon: what enterprises should do

    February 28, 2026

    OpenAI strikes a deal with the Defense Department to deploy its AI models

    February 28, 2026

    Trump orders federal agencies to drop Anthropic services amid Pentagon feud

    February 28, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025698 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025280 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025162 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025122 Views
    Don't Miss
    Gaming February 28, 2026

    The Warner Bros. acquisition: a timeline of events so far

    The Warner Bros. acquisition: a timeline of events so far The acquisition of movie giant…

    Xbox’s new boss could herald the changes the division needs | Opinion

    “He truly cared about games, about the industry, and about the people making them” – The industry on Phil Spencer

    Netflix backs out of Warner Bros deal, declines to match Paramount Skydance’s raised offer

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    The Warner Bros. acquisition: a timeline of events so far

    February 28, 20261 Views

    Xbox’s new boss could herald the changes the division needs | Opinion

    February 28, 20263 Views

    “He truly cared about games, about the industry, and about the people making them” – The industry on Phil Spencer

    February 28, 20264 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    Best TV Antenna of 2025

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.