Home / Companies / Ngrok / Blog / Post Details
Content Deep Dive

Deploy custom error pages with your logo, your messages, your way

Blog post from Ngrok

Post Details
Company
Date Published
Author
Joel Hans
Word Count
944
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

Ngrok users can now create custom error pages to provide a seamless user experience if their agents or upstream services go offline, without needing to fill out forms or wait for support. This is achieved by utilizing ngrok's endpoints and Traffic Policy system, which includes setting up a "shape" with a Cloud Endpoint and internal Agent Endpoints, and using the forward-internal Traffic Policy action to direct traffic appropriately. By changing the on_error policy from "halt" to "continue," users can implement a custom-response action to display personalized error pages instead of the default ngrok-branded ones. This process involves creating a cloud endpoint, configuring traffic rules, and designing custom HTML error pages that can be enriched with user-specific information using CEL interpolation. The new system not only enhances user experience but also helps streamline infrastructure by eliminating the need for separate hosting solutions for error pages, while providing opportunities to integrate logging for better debugging and observability.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 1 2,271 264 89 +53%
Observability 1 2,122 444 131 +14%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.