Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serving custom error pages #1537

Open
dominpm opened this issue Nov 20, 2024 · 0 comments
Open

Serving custom error pages #1537

dominpm opened this issue Nov 20, 2024 · 0 comments
Labels
enhancement New feature or request needs-triage

Comments

@dominpm
Copy link

dominpm commented Nov 20, 2024

Feature Request: Custom HTTP Error Pages

Summary:
Enable users to define and return custom error pages for HTTP errors within the Chainlit framework.

Description:
Currently, when HTTP errors occur in Chainlit applications, default error pages are displayed. This feature request proposes the ability for developers to create and return their own custom error pages. This enhancement would allow for more user-friendly error handling and a consistent user experience aligned with the application's branding.

Key Features:

  1. Custom Error Page Configuration:

    • Allow developers to specify custom HTML, CSS, and JavaScript for error pages.
    • Provide configuration options within the Chainlit settings to map specific HTTP error codes (e.g., 404, 500) to custom pages.
  2. Template Support:

    • Support for templating engines (e.g., Jinja2) to dynamically render error pages with context-specific information.

Benefits:

  • Enhances user experience by providing informative error messages.
  • Allows developers to maintain consistency in design and messaging across their application.
  • Facilitates better error handling and debugging by allowing context-specific information to be displayed.
@dosubot dosubot bot added the enhancement New feature or request label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant