MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / responseBadRequest

Method responseBadRequest

api/pkg/handlers/handler.go:18–24  ·  view source on GitHub ↗
(c fiber.Ctx, err error)

Source from the content-addressed store, hash-verified

16type handler struct{}
17
18func (h *handler) responseBadRequest(c fiber.Ctx, err error) error {
19 return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{
20 "status": "error",
21 "message": "The request isn't properly formed",
22 "data": err,
23 })
24}
25
26func (h *handler) responseInternalServerError(c fiber.Ctx) error {
27 return c.Status(fiber.StatusInternalServerError).JSON(fiber.Map{

Callers 15

MessagesMethod · 0.80
IndexMethod · 0.80
UpsertMethod · 0.80
UpsertFCMTokenMethod · 0.80
StoreMethod · 0.80
IndexMethod · 0.80
StoreMethod · 0.80
UpdateMethod · 0.80
IndexMethod · 0.80
UpdateMethod · 0.80
StoreMethod · 0.80
EventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected