Module Piaf.Status

include H2.Status
type informational = [
| `Continue
| `Switching_protocols
]
type successful = [
| `Accepted
| `Created
| `No_content
| `Non_authoritative_information
| `OK
| `Partial_content
| `Reset_content
]
type redirection = [
| `Found
| `Moved_permanently
| `Multiple_choices
| `Not_modified
| `See_other
| `Temporary_redirect
| `Use_proxy
]
type server_error = [
| `Bad_gateway
| `Gateway_timeout
| `Http_version_not_supported
| `Internal_server_error
| `Not_implemented
| `Service_unavailable
]
type client_error = [
| `Bad_request
| `Conflict
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Gone
| `I_m_a_teapot
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Not_acceptable
| `Not_found
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_timeout
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
]
type standard = [
| `Accepted
| `Bad_gateway
| `Bad_request
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy
]
type t = [
| `Accepted
| `Bad_gateway
| `Bad_request
| `Code of int
| `Conflict
| `Continue
| `Created
| `Enhance_your_calm
| `Expectation_failed
| `Forbidden
| `Found
| `Gateway_timeout
| `Gone
| `Http_version_not_supported
| `I_m_a_teapot
| `Internal_server_error
| `Length_required
| `Method_not_allowed
| `Misdirected_request
| `Moved_permanently
| `Multiple_choices
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy
]
val default_reason_phrase : standard -> string
val to_code : t -> int
val of_code : int -> t
val unsafe_of_code : int -> t
val is_informational : t -> bool
val is_successful : t -> bool
val is_redirection : t -> bool
val is_client_error : t -> bool
val is_server_error : t -> bool
val is_error : t -> bool
val to_string : t -> string
val of_string : string -> t
val pp_hum : Stdlib.Format.formatter -> t -> unit
val is_permanent_redirection : [> `Code of int | `Moved_permanently ] -> bool