From b369096cac66bda5bf2ccb7f774947195203d95c Mon Sep 17 00:00:00 2001 From: Geon Kim Date: Wed, 29 Aug 2018 10:40:40 +0900 Subject: [PATCH] echo: use HTTP status codes constants where applicable (#1184) --- echo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo_test.go b/echo_test.go index 17c64f85..294a412f 100644 --- a/echo_test.go +++ b/echo_test.go @@ -457,7 +457,7 @@ func request(method, path string, e *Echo) (int, string) { } func TestHTTPError(t *testing.T) { - err := NewHTTPError(400, map[string]interface{}{ + err := NewHTTPError(http.StatusBadRequest, map[string]interface{}{ "code": 12, }) assert.Equal(t, "code=400, message=map[code:12]", err.Error())