| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Hreq.Core.Client.ClientError
Description
This module provides ClientError constructors and type.
Documentation
data ClientError Source #
A type representing possible errors in a request This type and the Eq instance is largely borrowed from servant-client
Constructors
| FailureResponse Request Response | The server returned an error response including the
 failing request.  | 
| DecodeFailure Text Response | The body could not be decoded at the expected type | 
| UnsupportedContentType MediaType Response | The content-type of the response is not supported | 
| InvalidContentTypeHeader Response | The content-type header is invalid | 
| ConnectionError SomeException | There was a connection error, and no response was received |