Module Dns.Rcode

Response code

Each DNS reply includes a 4bit response code which signals the status of the request.

type t =
| NoError
| FormErr
| ServFail
| NXDomain
| NotImp
| Refused
| YXDomain
| YXRRSet
| NXRRSet
| NotAuth
| NotZone
| BadVersOrSig
| BadKey
| BadTime
| BadMode
| BadName
| BadAlg
| BadTrunc
| BadCookie

The type of response codes.

val pp : t Fmt.t

pp ppf rcode pretty-prints the rcode on ppf.

val compare : t -> t -> int

compare a b compares the response code a with b using the RFC-specified integer representation of response codes.

val to_string : t -> string

to_string t is a string representation of t.