servant-checked-exceptions-core-2.2.0.1: Checked exceptions for Servant APIs.
Safe HaskellNone
LanguageHaskell2010

Servant.Checked.Exceptions.Verbs

Synopsis

Specialized Verbs

HTTP 200

type GetWithErr = VerbWithErr 'GET 200 :: [Type] -> [Type] -> k -> Type Source #

type PostWithErr = VerbWithErr 'POST 200 :: [Type] -> [Type] -> k -> Type Source #

type PutWithErr = VerbWithErr 'PUT 200 :: [Type] -> [Type] -> k -> Type Source #

type DeleteWithErr = VerbWithErr 'DELETE 200 :: [Type] -> [Type] -> k -> Type Source #

type PatchWithErr = VerbWithErr 'PATCH 200 :: [Type] -> [Type] -> k -> Type Source #

data VerbWithErr (method :: k1) (successStatusCode :: Nat) (contentTypes :: [Type]) (es :: [Type]) (a :: k) Source #

Instances

Instances details
Generic (VerbWithErr method successStatusCode contentTypes es a) Source # 
Instance details

Defined in Servant.Checked.Exceptions.Internal.Verbs

Associated Types

type Rep (VerbWithErr method successStatusCode contentTypes es a) 
Instance details

Defined in Servant.Checked.Exceptions.Internal.Verbs

type Rep (VerbWithErr method successStatusCode contentTypes es a) = D1 ('MetaData "VerbWithErr" "Servant.Checked.Exceptions.Internal.Verbs" "servant-checked-exceptions-core-2.2.0.1-6bUVwXXNSy3HEvZwnNypi5" 'False) (V1 :: Type -> Type)

Methods

from :: VerbWithErr method successStatusCode contentTypes es a -> Rep (VerbWithErr method successStatusCode contentTypes es a) x #

to :: Rep (VerbWithErr method successStatusCode contentTypes es a) x -> VerbWithErr method successStatusCode contentTypes es a #

type Rep (VerbWithErr method successStatusCode contentTypes es a) Source # 
Instance details

Defined in Servant.Checked.Exceptions.Internal.Verbs

type Rep (VerbWithErr method successStatusCode contentTypes es a) = D1 ('MetaData "VerbWithErr" "Servant.Checked.Exceptions.Internal.Verbs" "servant-checked-exceptions-core-2.2.0.1-6bUVwXXNSy3HEvZwnNypi5" 'False) (V1 :: Type -> Type)

HTTP 201

type PostCreatedWithErr = VerbWithErr 'POST 201 :: [Type] -> [Type] -> k -> Type Source #

HTTP 202

type GetAcceptedWithErr = VerbWithErr 'GET 202 :: [Type] -> [Type] -> k -> Type Source #

type PostAcceptedWithErr = VerbWithErr 'POST 202 :: [Type] -> [Type] -> k -> Type Source #

type PatchAcceptedWithErr = VerbWithErr 'PATCH 202 :: [Type] -> [Type] -> k -> Type Source #

type PutAcceptedWithErr = VerbWithErr 'PUT 202 :: [Type] -> [Type] -> k -> Type Source #

HTTP 203

HTTP 204

type GetNoContentWithErr = VerbWithErr 'GET 204 :: [Type] -> [Type] -> k -> Type Source #

type PostNoContentWithErr = VerbWithErr 'POST 204 :: [Type] -> [Type] -> k -> Type Source #

type PutNoContentWithErr = VerbWithErr 'PUT 204 :: [Type] -> [Type] -> k -> Type Source #

HTTP 205

type GetResetContentWithErr = VerbWithErr 'GET 205 :: [Type] -> [Type] -> k -> Type Source #

type PutResetContentWithErr = VerbWithErr 'PUT 205 :: [Type] -> [Type] -> k -> Type Source #

HTTP 206

Envelope response wrapper