You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
328 B
Go

package exception
import (
"github.com/ajikamaludin/go-fiber-rest/pkg/utils/constants"
"github.com/gofiber/fiber/v2"
)
func ExceptionNotFound(c *fiber.Ctx, err error) error {
return c.Status(fiber.StatusNotFound).JSON(fiber.Map{
"status": constants.STATUS_FAIL,
"message": "Not Found",
"err": err.Error(),
})
}