Skip to content

Commit 5816ede

Browse files
author
Justin Fudally
committed
add error message
1 parent 7893f8e commit 5816ede

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

go/logic/throttler.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,22 @@ import (
1919
)
2020

2121
var (
22-
httpStatusMessages map[int]string = map[int]string{
22+
httpStatusMessages = map[int]string{
2323
200: "OK",
2424
404: "Not found",
2525
417: "Expectation failed",
2626
429: "Too many requests",
2727
500: "Internal server error",
28+
-1: "Connection error",
2829
}
2930
// See https://github.com/github/freno/blob/master/doc/http.md
30-
httpStatusFrenoMessages map[int]string = map[int]string{
31+
httpStatusFrenoMessages = map[int]string{
3132
200: "OK",
3233
404: "freno: unknown metric",
3334
417: "freno: access forbidden",
3435
429: "freno: threshold exceeded",
3536
500: "freno: internal error",
37+
-1: "freno: connection error",
3638
}
3739
)
3840

0 commit comments

Comments
 (0)