Detects a SOAP fault in a 200 response.
SEFAZ endpoints answer some errors with a fault inside a 200 OK, so status
code alone does not say whether the call worked. A fault is a transport
failure and must never be reported as a cStat.
Summary
Functions
:ok, or the fault reason when the body carries one.
Functions
@spec check(SefazNfe.XML.doc()) :: :ok | {:error, {:soap_fault, String.t()}}
:ok, or the fault reason when the body carries one.