pub fn serialize<V: Serialize, S: Serializer>( val: &HashMap<StatusCode, V>, ser: S, ) -> Result<S::Ok, S::Error>