Function
providerMessage
(status: number, body: { readonly body?: string })
Source from the content-addressed store, hash-verified
| 202 | } |
| 203 | |
| 204 | const providerMessage = (status: number, body: { readonly body?: string }) => { |
| 205 | if (body.body && body.body.length <= 500) return `Provider request failed with HTTP ${status}: ${body.body}` |
| 206 | return `Provider request failed with HTTP ${status}` |
| 207 | } |
| 208 | |
| 209 | const responseHttp = (input: { |
| 210 | readonly request: HttpClientRequest.HttpClientRequest |
Tested by
no test coverage detected