Changed exceptionhandler to always return json (ideally we'd work out what type of content the api call was supposed to produce)