We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7893f8e commit 5816edeCopy full SHA for 5816ede
go/logic/throttler.go
@@ -19,20 +19,22 @@ import (
19
)
20
21
var (
22
- httpStatusMessages map[int]string = map[int]string{
+ httpStatusMessages = map[int]string{
23
200: "OK",
24
404: "Not found",
25
417: "Expectation failed",
26
429: "Too many requests",
27
500: "Internal server error",
28
+ -1: "Connection error",
29
}
30
// See https://github.com/github/freno/blob/master/doc/http.md
- httpStatusFrenoMessages map[int]string = map[int]string{
31
+ httpStatusFrenoMessages = map[int]string{
32
33
404: "freno: unknown metric",
34
417: "freno: access forbidden",
35
429: "freno: threshold exceeded",
36
500: "freno: internal error",
37
+ -1: "freno: connection error",
38
39
40
0 commit comments