Lucu-0.5: HTTP Daemonic Library

Network.HTTP.Lucu.Response

Description

Definition of things related on HTTP response.

Synopsis

Documentation

isSuccessful :: StatusCode -> BoolSource

isSuccessful sc is True iff 200 <= sc < 300.

isRedirection :: StatusCode -> BoolSource

isRedirection sc is True iff 300 <= sc < 400.

isError :: StatusCode -> BoolSource

isError sc is True iff 400 <= sc

isClientError :: StatusCode -> BoolSource

isClientError sc is True iff 400 <= sc < 500.

statusCode :: StatusCode -> (#Int, ByteString#)Source

statusCode sc returns an unboxed tuple of numeric and textual representation of sc.