Maybe I'm doing something crazy and misunderstood exception mappers, but
I'm trying to do this in the toResponse function of my exception mapper
return
Response.status(statusCode).entity(errorText).type("text/html").build();
which seems to work in that the response is returned and rendered as
html, for example, but the status code returned is alwasy OK (200).
is this expected and i've missed something?
Essentially I've added a statuscode to my exception class rather than
defining multiple error page handlers in web.xml...
This is with glassfish 3.0.1 and jersey 1.4.04 (I've tried a newer
version but some deployment errors - see other email
Thanks
John