we are currently adding a monitoring solution (Dynatrace) to our JSF web application. The monitoring solution checks for status codes that indicate an error to flag a problem in a user session. We are trying to use Omnifaces FullAjaxExceptionHander (see http://showcase.omnifaces.org/exceptionhandlers/FullAjaxExceptionHandler) to handle Ajax exception and render an error page. As you can see from the screen shot Omnifaces sets an error code of 500 but the status code on the POST shows up as 200 in Chrome. As Dynatrace doesn't see an error status code it does not flag this on the user session.
Any idea why the status code is not set on the response? I thought I saw it briefly come up with a status code of 500 on the POST in our system but now it is only showing 200 again. That's when I tried the example from the Omnifaces showcase and there I am only getting the 200 has well.
<partial-response id="error">
couldn't this be done on the other responses that are a result of being processed by the full ` FullAjaxExceptionHandler? Or something like an
x-omnifaces-FullAjaxExceptionHandler: true` header being set in the response? Not sure if it is useable in the case of OP, but just a small thought – Morvin