fixed bug: if response body is not json, a Left(error) is returned
fixed bug: if endpoint at url does not answer, a Left(error) is returned
added integration spec