Method
responseUnprocessableEntity
(c fiber.Ctx, errors url.Values, message string)
Source from the content-addressed store, hash-verified
| 54 | } |
| 55 | |
| 56 | func (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 | |
| 64 | func (h *handler) responseNotFound(c fiber.Ctx, message string) error { |
| 65 | return c.Status(fiber.StatusNotFound).JSON(fiber.Map{ |
Tested by
no test coverage detected