I tested without the exception controller of FOSRest and it works perfectly.