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

Method responseUnauthorized

api/pkg/handlers/handler.go:33–39  ·  view source on GitHub ↗
(c fiber.Ctx)

Source from the content-addressed store, hash-verified

31}
32
33func (h *handler) responseUnauthorized(c fiber.Ctx) error {
34 return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{
35 "status": "error",
36 "message": "You are not authorized to carry out this request.",
37 "data": "Make sure your API key is set in the [X-API-Key] header in the request",
38 })
39}
40
41func (h *handler) responsePhoneAPIKeyUnauthorized(c fiber.Ctx, owner string, authCtx entities.AuthContext) error {
42 return c.Status(fiber.StatusUnauthorized).JSON(fiber.Map{

Callers 2

EventMethod · 0.80
DeleteAPIKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected