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

Method responseUnprocessableEntity

api/pkg/handlers/handler.go:56–62  ·  view source on GitHub ↗
(c fiber.Ctx, errors url.Values, message string)

Source from the content-addressed store, hash-verified

54}
55
56func (h *handler) responseUnprocessableEntity(c fiber.Ctx, errors url.Values, message string) error {
57 return c.Status(fiber.StatusUnprocessableEntity).JSON(fiber.Map{
58 "status": "error",
59 "message": message,
60 "data": errors,
61 })
62}
63
64func (h *handler) responseNotFound(c fiber.Ctx, message string) error {
65 return c.Status(fiber.StatusNotFound).JSON(fiber.Map{

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected