
12 Jul
2015
12 Jul
'15
2:31 p.m.
Hi list, Is there any way to read the response body of an >=400 HTTP response with http-client? If the response is an error response, it throws a StatusCodeException [1], which only exposes the headers, not the whole Response value. However, CouchDB gives a response body for the error responses, describing the error, which I want to access. [1]: https://hackage.haskell.org/package/http-client-0.2.1.1/docs/Network-HTTP-Cl... Cheers -- Minden jót, Sevcsik András