-
|
How can I use the Jinja2 template to render my custom template using TemplateResponse like the below code in the following sample code of 404 or 500 exception? In below code, it used HTMLResponse but How I can use for my custom template like flask or django application. Reference: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Take a look at the documentation for overriding the default exception handlers. I think that should be enough to achieve what you're asking about. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the help here @Hultner ! 👏 🙇 Thanks for reporting back and closing the issue @Aju100 👍
|
Beta Was this translation helpful? Give feedback.
Take a look at the documentation for overriding the default exception handlers. I think that should be enough to achieve what you're asking about.