fix(query): set error code "invalid" when controller reports error (#1812)
fix(query): set error code "invalid" when controller reports error (#1812)

Fixes flux#268
influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb