client_golang/api/prometheus/v1
Bryan Boreham 8fbbc9bc6b Decode JSON body when Prometheus returns 400 to an api call
400 and 422 are documented error codes from Prometheus, so we should
attempt to parse the error returned for both of them.

Needed to change a test that was requiring the old behaviour - made it
use 500 instead of 400.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2018-06-04 10:35:16 +00:00
..
api.go Decode JSON body when Prometheus returns 400 to an api call 2018-06-04 10:35:16 +00:00
api_test.go Decode JSON body when Prometheus returns 400 to an api call 2018-06-04 10:35:16 +00:00