Added exception handling for rest client, fixed bug in 'all' response.