It was more about custom application error messages, but I guess it can also be done with a filter on the response (in the exception case).
And while I'm at lenses should I use shared object with them if I'm using same in several places or they are cheap to create ?