diff --git a/scripts/pleroma_restrict_unauthenticated_search.lua b/scripts/pleroma_restrict_unauthenticated_search.lua index b907dd3..965f311 100644 --- a/scripts/pleroma_restrict_unauthenticated_search.lua +++ b/scripts/pleroma_restrict_unauthenticated_search.lua @@ -12,7 +12,7 @@ local function searchCallback(cfg, _ctx) local authheader = h["authorization"] if authheader == nil then - return 400, "requires authentication" + return 401, "requires authentication" else return nil end