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, …
Bounded StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusEnum StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusBe advised, that when using the "enumFrom*" family of methods or ranges in lists, it will generate all possible status codes.
E.g.
[status100 .. status200]generates Statuses of100, 101, 102 .. 198, 199, 200The statuses not included in this library will have an empty message.
Eq StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusData StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusOrd StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusStatuses are ordered according to their status codes only.
Show StatusDefined in http-types-0.12.4 · Network.HTTP.Types.StatusGeneric StatusDefined in http-types-0.12.4 · Network.HTTP.Types.Statustype Rep Status = D1 ('MetaDataDefined in http-types-0.12.4 · Network.HTTP.Types.Status"Status"
"Network.HTTP.Types.Status"
"http-types-0.12.4-KkMxTblWZY5WJ4M2x8W7s"
'False) (C1 ('MetaCons"Status"
'PrefixI 'True) (S1 ('MetaSel ('Just"statusCode"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just"statusMessage"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))