diff --git a/rest/controllers/query_runner_controller.go b/rest/controllers/query_runner_controller.go index 261eafa..7fd0a23 100644 --- a/rest/controllers/query_runner_controller.go +++ b/rest/controllers/query_runner_controller.go @@ -109,7 +109,7 @@ func TestConnection(c *fiber.Ctx) error { return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": err.Error()}) } if err := services.TestDBConnection(conx); err != nil { - return c.Status(fiber.StatusBadGateway).JSON(fiber.Map{"ok": false, "error": err.Error()}) + return c.Status(fiber.StatusUnprocessableEntity).JSON(fiber.Map{"ok": false, "error": err.Error()}) } return c.JSON(fiber.Map{"ok": true}) }