spectrum-sim: introduce api.Response