diff --git a/api/panel/utils.go b/api/panel/utils.go index a664d27..fa9a30f 100644 --- a/api/panel/utils.go +++ b/api/panel/utils.go @@ -23,7 +23,7 @@ func (c *Client) checkResponse(res *resty.Response, path string, err error) erro if err != nil { return fmt.Errorf("request %s failed: %s", c.assembleURL(path), err) } - if res.StatusCode() > 400 { + if res.StatusCode() != 200 { body := res.Body() return fmt.Errorf("request %s failed: %s, %s", c.assembleURL(path), string(body), err) }