# `ExSaml.ErrorMessages`
[🔗](https://github.com/docJerem/ex_saml/blob/main/lib/ex_saml/error_messages.ex#L1)

Error messages

Provide explanation for an error from its error code

## Example

    iex(2)> ExSaml.ErrorMessages.get(:bad_audience)
    "Make sure that the entity_id in configuration is correct"

    iex(3)> ExSaml.ErrorMessages.get(:cert_no_accepted)
    "Make sure the Identity Provider metadata XML file you are
    using in the config setting is correct and corresponds to the
    IdP you are attempting to talk to, you get this error if the
    certificate used by the IdP to sign the SAML responses has
    changed and you don't have the updated IdP metadata XML file"

---

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