Is it possible to render a template from middleware?
Posted
by pajton
on Stack Overflow
See other posts from Stack Overflow
or by pajton
Published on 2010-05-05T09:36:17Z
Indexed on
2010/05/05
9:38 UTC
Read the original article
Hit count: 210
I have a middleware that does some processing. On certain conditions it raises an exception and the user sees my 500.html
template - correctly responding to 500 http status.
Now, on some exceptions I would like to render different template than default 500.html
. Is it possible/how to achieve that?
© Stack Overflow or respective owner