Found Bug 🐛 statusCode
# auth user
    post "/authenticate[o:UserAuth:json]":

      if dbConn.exists(user.User, "email = ?", o.email.toLowerAscii()):
        var user = newUser()
        dbConn.select(user,"email = ?", o.email.toLowerAscii())

        if not verifyPassword(o.password,user.hash,user.salt):
          statusCode = 401
          return "Invalid email or password."

        {.gcsafe.}:
          var token = sign(user)

      
        return token

      else:
        statusCode = 401
        return "Invalid email or password."

Am I dumb or statusCode is flat out not working (it returns 200 every time even if not valid )
