Documentation ¶
Index ¶
- Variables
- func Err400(c *fiber.Ctx, data interface{}) error
- func Err401(c *fiber.Ctx, wwwAuth string, data interface{}) error
- func Err403(c *fiber.Ctx, data interface{}) error
- func Err404(c *fiber.Ctx, data interface{}) error
- func Err422(c *fiber.Ctx, data interface{}) error
- func Err429(c *fiber.Ctx, data interface{}) error
- func Err500(c *fiber.Ctx, data interface{}) error
- func ErrInvalidRequestParams(c *fiber.Ctx) error
- func ErrNotFound(c *fiber.Ctx) error
- func ErrSomethingWentWrong(c *fiber.Ctx) error
- func ErrTooManyRequests(c *fiber.Ctx) error
- func ErrUnauthorized403(c *fiber.Ctx) error
- func ErrUnprocessableEntity(c *fiber.Ctx) error
- type APIErr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InvalidRequestParams 400 InvalidRequestParams = New("invalid-request-parameters") // NotFound 404 NotFound = New("not-found") Unauthorized403 = New("unauthorized-403") // UnprocessableEntity 422 UnprocessableEntity = New("unprocessable-entity") // TooManyRequests 429 TooManyRequests = New("too-many-requests") )
View Source
var SomethingWentWrong = New("something-went-wrong")
SomethingWentWrong 500
Functions ¶
func ErrInvalidRequestParams ¶
func ErrInvalidRequestParams(c *fiber.Ctx) error
ErrInvalidRequestParams 400
func ErrSomethingWentWrong ¶
func ErrSomethingWentWrong(c *fiber.Ctx) error
ErrSomethingWentWrong 500
func ErrUnprocessableEntity ¶
func ErrUnprocessableEntity(c *fiber.Ctx) error
ErrUnprocessableEntity 422
Types ¶
Click to show internal directories.
Click to hide internal directories.