Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type client_error = [
| `Bad_Request
| `Payment_Required
| `Forbidden
| `Not_Found
| `Method_Not_Allowed
| `Not_Acceptable
| `Proxy_Authentication_Required
| `Request_Timeout
| `Conflict
| `Gone
| `Length_Required
| `Precondition_Failed
| `Payload_Too_Large
| `URI_Too_Long
| `Unsupported_Media_Type
| `Range_Not_Satisfiable
| `Expectation_Failed
| `Misdirected_Request
| `Too_Early
| `Upgrade_Required
| `Precondition_Required
| `Too_Many_Requests
| `Request_Header_Fields_Too_Large
]
val is_informational : [< status ] -> bool
val is_successful : [< status ] -> bool
val is_redirection : [< status ] -> bool
val is_client_error : [< status ] -> bool
val is_server_error : [< status ] -> bool
val status_to_int :
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
int
val int_to_status : int -> status
val status_to_reason :
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
string option
val status_to_string :
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
string
val normalize_status :
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
status
val status_codes_equal :
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
[< `Accepted
| `Bad_Gateway
| `Bad_Request
| `Conflict
| `Continue
| `Created
| `Expectation_Failed
| `Forbidden
| `Found
| `Gateway_Timeout
| `Gone
| `HTTP_Version_Not_Supported
| `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
| `Permanent_Redirect
| `Precondition_Failed
| `Precondition_Required
| `Proxy_Authentication_Required
| `Range_Not_Satisfiable
| `Request_Header_Fields_Too_Large
| `Request_Timeout
| `Reset_Content
| `See_Other
| `Service_Unavailable
| `Status of int
| `Switching_Protocols
| `Temporary_Redirect
| `Too_Early
| `Too_Many_Requests
| `URI_Too_Long
| `Unauthorized
| `Unavailable_For_Legal_Reasons
| `Unsupported_Media_Type
| `Upgrade_Required ] ->
bool