function stringify_action_response(data, route_id, transport) {
	const encoders = Object.fromEntries(
		Object.entries(transport).map(([key, value]) => [key, value.encode])
	);

	return try_serialize(data, (value) => devalue.stringify(value, encoders), route_id);
}
Try to `devalue.stringify` the data object, and if it fails, return a proper Error with context
@param {any} data
@param {string} route_id
@param {import('types').ServerHooks['transport']} transport