If you insert that filter into your app stack and ...
# http4k
d
If you insert that filter into your app stack and use a standard resource loader (eg. Classpath), you can create static files "500", "502"... (or change the logic for the lambda to suit) then it should intercept responses and replace them with the templates.