use fiber constant for statuscode

This commit is contained in:
Gianni Carafa
2023-11-02 23:20:02 +01:00
parent 2f1de95e06
commit 6eb7b481d8

View File

@@ -24,7 +24,7 @@ func ProxySite(c *fiber.Ctx) error {
body, _, resp, err := fetchSite(url, queries) body, _, resp, err := fetchSite(url, queries)
if err != nil { if err != nil {
log.Println("ERROR:", err) log.Println("ERROR:", err)
c.SendStatus(500) c.SendStatus(fiber.StatusInternalServerError)
return c.SendString(err.Error()) return c.SendString(err.Error())
} }