Skip to content

Commit

Permalink
echo: use HTTP status codes constants where applicable (labstack#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
KimMachineGun authored and vishr committed Aug 29, 2018
1 parent 65f7897 commit b369096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit b369096

Please sign in to comment.