In one of my method, I am filling up some headers before hitting my service layer.
My service layer raises an exception (valid one based on context) and I am sending an exception using the ExceptionMapper custom class.
Using curl -v on my endpoint I do not see the header values I set in the code. It seems that the Exception Mapper flushes the HttpResponse. Is that the case?
Is it normal? If so, how can I set header values in the exception mapper directly? Or should I set my headers in an Interceptor class?