Exception controller

alternative for https://github.com/FriendsOfSymfony/FOSRestBundle/pull/891
fix for https://github.com/FriendsOfSymfony/FOSRestBundle/issues/899