Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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 |
InvalidStatusCode Response | The received status code didn't much the expected. |
ConnectionError SomeException | There was a connection error, and no response was received |