diff --git a/cmd/shared/shared.go b/cmd/shared/shared.go index 986c1ec7..a4c375d4 100644 --- a/cmd/shared/shared.go +++ b/cmd/shared/shared.go @@ -216,7 +216,8 @@ func HttpClient(params ...string) error { if err != nil { Error.Fatalln("Error in response:\n", err) return err - } else if resp.StatusCode != 200 { + } else if resp.StatusCode > 299 { + Error.Fatalln("Response Code:\n", resp.StatusCode) Error.Fatalln("Error in response:\n", string(body)) return errors.New("Error in response") } else {