mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-07-29 16:54:02 +02:00
parent
24b40e8039
commit
250e248f98
@ -66,6 +66,9 @@ func requestURL(bt *Icingabeat, method string, URL *url.URL) (*http.Response, er
|
||||
case 401:
|
||||
err = errors.New("Authentication failed for user " + bt.config.User)
|
||||
defer response.Body.Close()
|
||||
case 404:
|
||||
err = errors.New("404 Not Found. Missing permissions may be a reason for this.")
|
||||
defer response.Body.Close()
|
||||
}
|
||||
|
||||
return response, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user