Function ros2_medkit_gateway::handlers::make_error

Function Documentation

inline ErrorInfo ros2_medkit_gateway::handlers::make_error(int status, const std::string &code, std::string message, nlohmann::json params = {})

Build a SOVD-shaped ErrorInfo. Empty params are dropped so the wire body matches the legacy send_error default and integration tests stay byte- identical. Shared by every typed handler (was duplicated per handler TU).