Exception controller

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