call to_media_type first on serializer; assign response headers after