pub fn serialize_error( error: &AwsError, request_id: &str, ) -> (StatusCode, HeaderMap, Bytes)
Serialize a JSON error response.