use the FOS exception controller to show messages in JSON format