HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehttp-types-0.12.4Haskell2010

Network.HTTP.Types.Status

Types and constants to describe HTTP status codes.

At the bottom are some functions to check if a given Status is from a certain category. (i.e. 1XX, 2XX, etc.)

  • 1 type
  • 104 values
  • Packagehttp-types-0.12.4
  • Exports105
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStatus.hs

HTTP Status

4 declarations
datadata Status
#

HTTP Status.

Only the statusCode is used for comparisons.

Please use mkStatus to create status codes from code and message, or the Enum instance or the status code constants (like ok200). There might be additional record members in the future.

Note that the Show instance is only for debugging.

Instances8Bounded, Enum, Eq, Data, Ord, Show, …

Common statuses

96 declarations

Checking status code category

5 declarations