package tiny_httpd

  1. Overview
  2. Docs

Module Tiny_httpd_core.Response_codeSource

Response Codes

Sourcetype t = int

A standard HTTP code.

https://tools.ietf.org/html/rfc7231#section-6

Sourceval ok : t

The code 200

Sourceval not_found : t

The code 404

Sourceval descr : t -> string

A description of some of the error codes. NOTE: this is not complete (yet).

Sourceval is_success : t -> bool

is_success code is true iff code is in the 2xx or 3xx range.

  • since 0.17