# cloud_api_client: Add a few helpers for response handling \(\#58346\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/74180d86fee64d671d0924e04fac58f774319ac8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 74180d86fee64d671d0924e04fac58f774319ac8

Requested commit: 74180d86fee64d671d0924e04fac58f774319ac8

Commit: 74180d86fee64d671d0924e04fac58f774319ac8

Tree: 4fc114f334f246683ee0bfd9acf8b4e1e369c913

Author: Tom Houlé

Committer: GitHub

## Message

```
cloud_api_client: Add a few helpers for response handling (#58346)

This centralizes some repeated logic across `cloud_api_client`, to map
generic request failures (`ConnectionFailed`, 401s) to errors and read
response bodies, handling failures there too.

Closes CLO-759.

Release Notes:

- N/A
```

## Parents

- [737f55a1a14d3a95d776e2cfa32554f0fd03fbe7](https://git.cafe/gitcafe/zed/commit/737f55a1a14d3a95d776e2cfa32554f0fd03fbe7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/74180d86fee64d671d0924e04fac58f774319ac8?format=markdown)
