Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultErrorHandler = func(c *fiber.Ctx, err error) error { code := fiber.StatusInternalServerError message := err.Error() var e *fiber.Error if errors.As(err, &e) { code = e.Code } return c.Status(code).JSON(fiber.Map{"error": message, "code": code}) }
DefaultErrorHandler is the default error handler.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.