diff --git a/api/api.go b/api/api.go index 57f3807..f7207bf 100644 --- a/api/api.go +++ b/api/api.go @@ -12,13 +12,13 @@ import ( func NoMethod() gin.HandlerFunc { return func(c *gin.Context) { - c.AbortWithError(http.StatusNotFound, nil) + c.AbortWithStatus(http.StatusNotFound) } } func NoRoute() gin.HandlerFunc { return func(c *gin.Context) { - c.AbortWithError(http.StatusNotFound, nil) + c.AbortWithStatus(http.StatusNotFound) } }