diff --git a/response.go b/response.go index 31fad400..68d7db1f 100644 --- a/response.go +++ b/response.go @@ -184,7 +184,7 @@ func (r *Response) Decode(v interface{}) error { err = json.Unmarshal(b, v) } - err = terrors.WrapWithCode(err, nil, terrors.ErrBadRequest) + err = terrors.WrapWithCode(err, nil, terrors.ErrBadResponse) if err != nil { r.Error = err }