Description
When an error is handled by myfaces exception handler implementation, it is a good practice to set response status codes. This is not necessary for ajax responses but for normal requests. The visible effect is with firebug you see the red link.
Additionally, there is a missing line, to prevent set myfaces exception handler on production stages, unless it is declared on web.xml