Dream_h2.StatusSourceinclude module type of Httpaf.Status
with type client_error := Httpaf.Status.client_error
and type standard := Httpaf.Status.standard
and type t := Httpaf.Status.tThe 1xx (Informational) class of status code indicates an interim response for communicating connection status or request progress prior to completing the requested action and sending a final response.
See RFC7231§6.2 for more details.
The 2xx (Successful) class of status code indicates that the client's request was successfully received, understood, and accepted.
See RFC7231§6.3 for more details.
type redirection = [ | `Multiple_choices| `Moved_permanently| `Found| `See_other| `Not_modified| `Use_proxy| `Temporary_redirect ]The 3xx (Redirection) class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request.
See RFC7231§6.4 for more details.
type server_error = [ | `Internal_server_error| `Not_implemented| `Bad_gateway| `Gateway_timeout| `Http_version_not_supported| `Network_authentication_required ]The 5xx (Server Error) class of status code indicates that the server is aware that it has erred or is incapable of performing the requested method.
See RFC7231§6.6 for more details.
val default_reason_phrase :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
stringval to_code :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
intval is_informational :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval is_successful :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval is_redirection :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval is_client_error :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval is_server_error :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval is_error :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
boolval to_string :
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
stringval pp_hum :
Format.formatter ->
[< `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
| `Network_authentication_required
| `No_content
| `Non_authoritative_information
| `Not_acceptable
| `Not_found
| `Not_implemented
| `Not_modified
| `OK
| `Partial_content
| `Payload_too_large
| `Payment_required
| `Precondition_failed
| `Precondition_required
| `Proxy_authentication_required
| `Range_not_satisfiable
| `Request_header_fields_too_large
| `Request_timeout
| `Reset_content
| `See_other
| `Service_unavailable
| `Switching_protocols
| `Temporary_redirect
| `Too_many_requests
| `Unauthorized
| `Unsupported_media_type
| `Upgrade_required
| `Uri_too_long
| `Use_proxy ] ->
unit