Filtered response to raise exception on error and return only 'data' part
Added a test to text error response