Servant.API.Status

servant-0.20.2: A family of combinators for defining webservices APIs

Safe Haskell | None
Language | Haskell2010

Servant.API.Status

Synopsis

- statusFromNat :: forall (a :: Nat) proxy. KnownNat a => proxy a -> Status
- class KnownNat n => KnownStatus (n :: Nat) where
  - statusVal :: proxy n -> Status

# Documentation

statusFromNat :: forall (a :: Nat) proxy. KnownNat a => proxy a -> Status #

Retrieve a known or unknown Status from a KnownNat

class KnownNat n => KnownStatus (n :: Nat) where #

Witness that a type-level natural number corresponds to a HTTP status code

Methods

statusVal :: proxy n -> Status #

#### Instances

Instances details

KnownStatus 100 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 100 -> Status #
KnownStatus 101 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 101 -> Status #
KnownStatus 200 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 200 -> Status #
KnownStatus 201 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 201 -> Status #
KnownStatus 202 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 202 -> Status #
KnownStatus 203 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 203 -> Status #
KnownStatus 204 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 204 -> Status #
KnownStatus 205 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 205 -> Status #
KnownStatus 206 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 206 -> Status #
KnownStatus 300 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 300 -> Status #
KnownStatus 301 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 301 -> Status #
KnownStatus 302 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 302 -> Status #
KnownStatus 303 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 303 -> Status #
KnownStatus 304 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 304 -> Status #
KnownStatus 305 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 305 -> Status #
KnownStatus 307 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 307 -> Status #
KnownStatus 308 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 308 -> Status #
KnownStatus 400 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 400 -> Status #
KnownStatus 401 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 401 -> Status #
KnownStatus 402 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 402 -> Status #
KnownStatus 403 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 403 -> Status #
KnownStatus 404 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 404 -> Status #
KnownStatus 405 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 405 -> Status #
KnownStatus 406 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 406 -> Status #
KnownStatus 407 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 407 -> Status #
KnownStatus 408 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 408 -> Status #
KnownStatus 409 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 409 -> Status #
KnownStatus 410 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 410 -> Status #
KnownStatus 411 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 411 -> Status #
KnownStatus 412 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 412 -> Status #
KnownStatus 413 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 413 -> Status #
KnownStatus 414 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 414 -> Status #
KnownStatus 415 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 415 -> Status #
KnownStatus 416 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 416 -> Status #
KnownStatus 417 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 417 -> Status #
KnownStatus 418 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 418 -> Status #
KnownStatus 422 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 422 -> Status #
KnownStatus 426 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 426 -> Status #
KnownStatus 428 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 428 -> Status #
KnownStatus 429 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 429 -> Status #
KnownStatus 431 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 431 -> Status #
KnownStatus 500 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 500 -> Status #
KnownStatus 501 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 501 -> Status #
KnownStatus 502 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 502 -> Status #
KnownStatus 503 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 503 -> Status #
KnownStatus 504 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 504 -> Status #
KnownStatus 505 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 505 -> Status #
KnownStatus 511 # |
Instance details Defined in Servant.API.Status Methods statusVal :: proxy 511 -> Status #