Status

Sets the HTTP status for the response.

Method is a chainable.
  1. c.Status(status int)
  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.Status(200)
  3. c.Status(400).Send("Bad Request")
  4. c.Status(404).SendFile("./public/gopher.png")
  5. })