Expand description
Shared helpers for parsing AWS protocol error envelopes (error-code sanitization and the awsQueryCompatible header), used by the JSON and CBOR codecs.
Functionsยง
- parse_
query_ compatible_ header - Parses an
X-Amzn-Query-Error: <code>;<type>header into its(code, type)halves, as emitted by awsQueryCompatible services. - sanitize_
error_ code - Strips a leading
namespace#prefix and a trailing:urlsuffix from a wire-format error code, leaving just the bare shape name.