Module Httpaf_caged.Status

type informational = [
  1. | `Continue
  2. | `Switching_protocols
]
type successful = [
  1. | `Accepted
  2. | `Created
  3. | `No_content
  4. | `Non_authoritative_information
  5. | `OK
  6. | `Partial_content
  7. | `Reset_content
]
type redirection = [
  1. | `Found
  2. | `Moved_permanently
  3. | `Multiple_choices
  4. | `Not_modified
  5. | `See_other
  6. | `Temporary_redirect
  7. | `Use_proxy
]
type client_error = [
  1. | `Bad_request
  2. | `Conflict
  3. | `Enhance_your_calm
  4. | `Expectation_failed
  5. | `Forbidden
  6. | `Gone
  7. | `I_m_a_teapot
  8. | `Length_required
  9. | `Method_not_allowed
  10. | `Not_acceptable
  11. | `Not_found
  12. | `Payload_too_large
  13. | `Payment_required
  14. | `Precondition_failed
  15. | `Proxy_authentication_required
  16. | `Range_not_satisfiable
  17. | `Request_timeout
  18. | `Unauthorized
  19. | `Unsupported_media_type
  20. | `Upgrade_required
  21. | `Uri_too_long
]
type server_error = [
  1. | `Bad_gateway
  2. | `Gateway_timeout
  3. | `Http_version_not_supported
  4. | `Internal_server_error
  5. | `Not_implemented
  6. | `Service_unavailable
]
type standard = [
  1. | `Accepted
  2. | `Bad_gateway
  3. | `Bad_request
  4. | `Conflict
  5. | `Continue
  6. | `Created
  7. | `Enhance_your_calm
  8. | `Expectation_failed
  9. | `Forbidden
  10. | `Found
  11. | `Gateway_timeout
  12. | `Gone
  13. | `Http_version_not_supported
  14. | `I_m_a_teapot
  15. | `Internal_server_error
  16. | `Length_required
  17. | `Method_not_allowed
  18. | `Moved_permanently
  19. | `Multiple_choices
  20. | `No_content
  21. | `Non_authoritative_information
  22. | `Not_acceptable
  23. | `Not_found
  24. | `Not_implemented
  25. | `Not_modified
  26. | `OK
  27. | `Partial_content
  28. | `Payload_too_large
  29. | `Payment_required
  30. | `Precondition_failed
  31. | `Proxy_authentication_required
  32. | `Range_not_satisfiable
  33. | `Request_timeout
  34. | `Reset_content
  35. | `See_other
  36. | `Service_unavailable
  37. | `Switching_protocols
  38. | `Temporary_redirect
  39. | `Unauthorized
  40. | `Unsupported_media_type
  41. | `Upgrade_required
  42. | `Uri_too_long
  43. | `Use_proxy
]
type t = [
  1. | `Accepted
  2. | `Bad_gateway
  3. | `Bad_request
  4. | `Code of int
  5. | `Conflict
  6. | `Continue
  7. | `Created
  8. | `Enhance_your_calm
  9. | `Expectation_failed
  10. | `Forbidden
  11. | `Found
  12. | `Gateway_timeout
  13. | `Gone
  14. | `Http_version_not_supported
  15. | `I_m_a_teapot
  16. | `Internal_server_error
  17. | `Length_required
  18. | `Method_not_allowed
  19. | `Moved_permanently
  20. | `Multiple_choices
  21. | `No_content
  22. | `Non_authoritative_information
  23. | `Not_acceptable
  24. | `Not_found
  25. | `Not_implemented
  26. | `Not_modified
  27. | `OK
  28. | `Partial_content
  29. | `Payload_too_large
  30. | `Payment_required
  31. | `Precondition_failed
  32. | `Proxy_authentication_required
  33. | `Range_not_satisfiable
  34. | `Request_timeout
  35. | `Reset_content
  36. | `See_other
  37. | `Service_unavailable
  38. | `Switching_protocols
  39. | `Temporary_redirect
  40. | `Unauthorized
  41. | `Unsupported_media_type
  42. | `Upgrade_required
  43. | `Uri_too_long
  44. | `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 : Format.formatter -> t -> unit