diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index 5bfec86..bd9c870 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -49,7 +49,8 @@ function gmInte.http.requestAPI(params) local requestID = genRequestID() if (token == "") then - return noTokenError() + noTokenError() + return failed(401, "No token provided") end local headers = {