Module Http.Status

Status codes.

type t = int

The type for status codes.

val reason_phrase : t -> string

reason_phrase s is s's reason phrase.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats status codes for inspection.

Predefined status codes

Informational 1xx

val continue_100 : t
val switching_protocols_101 : t

Sucessful 2xx

val ok_200 : t
val created_201 : t
val accepted_202 : t
val non_authoritative_information_203 : t
val no_content_204 : t
val reset_content_205 : t
val partial_content_206 : t

Redirection 3xx

val multiple_choices_300 : t
val moved_permanently_301 : t
val found_302 : t
val see_other_303 : t
val not_modified_304 : t
val use_proxy_305 : t
val temporary_redirect_307 : t
val permanent_redirect_308 : t

Client Error 4xx

val bad_request_400 : t
val unauthorized_401 : t
val payement_required_402 : t
val forbidden_403 : t
val not_found_404 : t
val method_not_allowed_405 : t
val not_acceptable_406 : t
val proxy_authentication_required_407 : t
val request_time_out_408 : t
val conflict_409 : t
val gone_410 : t
val length_required_411 : t
val precondition_failed_412 : t
val content_too_large_413 : t
val uri_too_long_414 : t
val unsupported_media_type_415 : t
val range_not_satisfiable_416 : t
val expectation_failed_417 : t
val i'm_a_teapot_418 : t
val upgrade_required_426 : t

Server Error 5xx

val server_error_500 : t
val not_implemented_501 : t
val bad_gateway_502 : t
val service_unavailable_503 : t
val gateway_time_out_504 : t
val http_version_not_supported_505 : t