Sorry. I don't understand your question.
I asked myself why this code did not work:
> return Response.fromResponse(r).entity(new Viewable("/error-pages/404",
> null)).build();
(i got a browser-intern message that the resource is not available)
But when changing it to
> return Response.ok(new Viewable("/error-pages/404", null)).build();
everything works fine.
--
View this message in context: http://jersey.576304.n2.nabble.com/RolesAllowed-Customizing-error-pages-tp5780105p5784481.html
Sent from the Jersey mailing list archive at Nabble.com.