hreq-core-0.1.0.0: Core functionality for Hreq Http client library

Safe HaskellNone
LanguageHaskell2010

Hreq.Core.Client.ClientError

Description

This module provides ClientError constructors and type.

Synopsis

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. reqPath includes the BaseUrl and the path of the 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

Instances
Eq ClientError Source # 
Instance details

Defined in Hreq.Core.Client.ClientError

Show ClientError Source # 
Instance details

Defined in Hreq.Core.Client.ClientError

Generic ClientError Source # 
Instance details

Defined in Hreq.Core.Client.ClientError

Associated Types

type Rep ClientError :: Type -> Type #

Exception ClientError Source # 
Instance details

Defined in Hreq.Core.Client.ClientError

type Rep ClientError Source # 
Instance details

Defined in Hreq.Core.Client.ClientError