pub fn tea_error_code(content_type: Option<&str>, body: &[u8]) -> Option<String>Expand description
Decide whether a 404 body is a TEA error response.
Recognition follows the discovery document: Content-Type is
application/json with optional parameters, and the body is a JSON object
with a string error property. Unknown error values still count. This is
intentionally wider than additionalProperties: false, because the prose
says a later error value must not become a failover trigger.