HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehttp-types-0.12.6Haskell2010

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.)

Contents
  1. HTTP Status
  2. Common statuses
  3. Checking status code category
Synopsis
  • Packagehttp-types-0.12.6
  • Exports107
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStatus.hs

HTTP Status

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.

Constructors

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

Common statuses

Checking status code category