pub fn serialize_error( protocol: Protocol, error: &AwsError, request_id: &str, ) -> (StatusCode, HeaderMap, Bytes)
Serialize an error response based on protocol.