Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FiberErrorHandler = func(ctx *fiber.Ctx, err error) error { code := fiber.StatusInternalServerError msg := err.Error() if e, ok := err.(*fiber.Error); ok { code = e.Code } if code == 500 { msg = "Internal Server Error" LogError(err) } ctx.Set(fiber.HeaderContentType, fiber.MIMETextPlainCharsetUTF8) return ctx.Status(code).SendString(msg) }
FiberErrorHandler is a fiber.Config parameter.
View Source
var NewHTTPError = fiber.NewError
NewHTTPError is fiber.NewError wrapper.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.