Skip to content

Commit b369096

Browse files
KimMachineGunvishr
authored andcommitted
echo: use HTTP status codes constants where applicable (#1184)
1 parent 65f7897 commit b369096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

echo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func request(method, path string, e *Echo) (int, string) {
457457
}
458458

459459
func TestHTTPError(t *testing.T) {
460-
err := NewHTTPError(400, map[string]interface{}{
460+
err := NewHTTPError(http.StatusBadRequest, map[string]interface{}{
461461
"code": 12,
462462
})
463463
assert.Equal(t, "code=400, message=map[code:12]", err.Error())

0 commit comments

Comments
 (0)