1
0
mirror of https://github.com/labstack/echo.git synced 2026-05-16 09:48:24 +02:00

echo: use HTTP status codes constants where applicable (#1184)

This commit is contained in:
Geon Kim
2018-08-29 10:40:40 +09:00
committed by Vishal Rana
parent 65f7897b7a
commit b369096cac
+1 -1
View File
@@ -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())