# `Ithibati.Ceremony`
[🔗](https://github.com/oliverandrich/ithibati/blob/v0.6.2/lib/ithibati/ceremony.ex#L1)

Lists the failure-code vocabulary produced by Ithibati's server and browser integration.

The browser hook delivers codes as strings in `ithibati:failed` events. `codes/0` returns the
fixed codes as atoms so applications can verify their message coverage:

    for code <- Ithibati.Ceremony.codes() do
      refute message(to_string(code)) =~ "Something went wrong"
    end

The list does not include application-defined handler errors or the suffixed codes represented
by `families/0`. Handle those separately or provide a fallback.
[Handling failures](ceremonies.md#handling-failures) describes each code.

# `codes`

Every code this library can send, sorted.

# `families`

Returns the prefixes of error-code families whose suffixes vary.

`:http` represents codes such as `http_404`; `:missing_data` represents codes such as
`missing_data_registration_url`. Match these by prefix or handle them with a fallback.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
